aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileutils.c b/src/fileutils.c
index 48cf825..197a201 100644
--- a/src/fileutils.c
+++ b/src/fileutils.c
@@ -93,7 +93,7 @@ int create_directory_recursive(char *path) {
return 0;
}
-static int is_path(const char *path) {
+static int is_directory(const char *path) {
struct stat s;
if(stat(path, &s) == 0)
return S_ISDIR(s.st_mode);
@@ -122,7 +122,7 @@ static int remove_recursive_mutable(char *path) {
int is_dir = dir->d_type == DT_DIR;
if(dir->d_type == DT_UNKNOWN)
- is_dir = is_path(path);
+ is_dir = is_directory(path);
if(is_dir) {
res = remove_recursive_mutable(path);