diff options
Diffstat (limited to 'src/fileutils.c')
-rw-r--r-- | src/fileutils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fileutils.c b/src/fileutils.c index fe9ab88..64c7a48 100644 --- a/src/fileutils.c +++ b/src/fileutils.c @@ -83,8 +83,7 @@ int create_directory_recursive(char *path) { } int file_exists(const char *path) { - struct stat st; - return stat(path, &st); + return access(path, F_OK); } int create_lock_file(const char *path) { |