From 94c45e3c4d185b3f0d70f0d2d761b72c6561e1b5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 14 Jul 2020 06:55:18 +0200 Subject: Implement add_html --- src/fileutils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fileutils.c') 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) { -- cgit v1.2.3