aboutsummaryrefslogtreecommitdiffstats
path: root/src/easydir.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-24 18:11:03 +0000
committerJoursoir <chat@joursoir.net>2021-02-24 18:11:03 +0000
commit7cd03c4bbaba01e6b3c46ef5eb61825b34e60643 (patch)
treebcd1159fede206353acfa3b5bd3d11dc5bdb9e19 /src/easydir.h
parentd81afd1cd15df4f789b5fb12c640fcd19312ee0c (diff)
downloadlock-password-7cd03c4bbaba01e6b3c46ef5eb61825b34e60643.tar.gz
lock-password-7cd03c4bbaba01e6b3c46ef5eb61825b34e60643.tar.bz2
lock-password-7cd03c4bbaba01e6b3c46ef5eb61825b34e60643.zip
refactor code
Diffstat (limited to 'src/easydir.h')
-rw-r--r--src/easydir.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/easydir.h b/src/easydir.h
index 4680709..0ba5677 100644
--- a/src/easydir.h
+++ b/src/easydir.h
@@ -1,8 +1,12 @@
#ifndef EASYDIR_H
#define EASYDIR_H
-int deleteFile(char *file_path);
-int deleteEmptyDir(char *dir_path);
+enum status_file {
+ F_SUCCESS,
+ F_NOEXIST,
+ F_ISDIR
+};
+
int checkFileExist(char *path_to_file);
char *fileCropLineFeed(char *path, char *text, int maxlen);