commit 8c0aab787fdabfe79960d4af24c920249b675c3e
parent 3a3a5c7edc94bec2ac75acebb074d19b4bd7940b
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Mon, 31 Mar 2025 16:18:13 +0200
refactor: rename file_exists to is_file_readable
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/file.c b/file.c
@@ -3,6 +3,6 @@
#include <unistd.h>
int
-file_exists(char *path) {
+is_file_readable(char *path) {
return (access(path, R_OK) == 0);
}
diff --git a/file.h b/file.h
@@ -2,6 +2,6 @@
#define FILE_H
int
-file_exists(char *path);
+is_file_readable(char *path);
#endif