From 3aabad59dc2bbdb74777f2d0dc195fb0bbe75bfc Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 26 Feb 2021 16:16:13 +0000 Subject: improve code and codestyle; mv/rm cmd don't use global vars anymore --- src/easydir.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/easydir.h') 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 -- cgit v1.2.3-18-g5258