aboutsummaryrefslogtreecommitdiffstats
path: root/src/easydir.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-26 16:16:13 +0000
committerJoursoir <chat@joursoir.net>2021-02-26 16:16:13 +0000
commit3aabad59dc2bbdb74777f2d0dc195fb0bbe75bfc (patch)
tree7c340979b1f3466b4b78f3c03ac5fd311d617d92 /src/easydir.h
parenta8fe7bce0ea33f71485cf8c2e4c8330831c849ce (diff)
downloadlock-password-3aabad59dc2bbdb74777f2d0dc195fb0bbe75bfc.tar.gz
lock-password-3aabad59dc2bbdb74777f2d0dc195fb0bbe75bfc.tar.bz2
lock-password-3aabad59dc2bbdb74777f2d0dc195fb0bbe75bfc.zip
improve code and codestyle; mv/rm cmd don't use global vars anymore
Diffstat (limited to 'src/easydir.h')
-rw-r--r--src/easydir.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/easydir.h b/src/easydir.h
index 0ba5677..06a2109 100644
--- a/src/easydir.h
+++ b/src/easydir.h
@@ -2,12 +2,13 @@
#define EASYDIR_H
enum status_file {
- F_SUCCESS,
+ F_ISFILE,
F_NOEXIST,
F_ISDIR
};
-int checkFileExist(char *path_to_file);
+int file_exist(const char *path);
+int count_dir_entries(const char *path);
char *fileCropLineFeed(char *path, char *text, int maxlen);
#endif \ No newline at end of file