aboutsummaryrefslogtreecommitdiff
path: root/src/fileutils.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-14 06:55:18 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-14 06:55:18 +0200
commit94c45e3c4d185b3f0d70f0d2d761b72c6561e1b5 (patch)
tree7c3c06987f82f726422bda9e5de86172f60c3065 /src/fileutils.c
parenta15d7ad07a5865f2f51e85d5e4e049922c50deec (diff)
Implement add_html
Diffstat (limited to 'src/fileutils.c')
-rw-r--r--src/fileutils.c3
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) {