From eaa0851500c111a0fe5a50bc3f8b5aa4354774db Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 11 Apr 2021 09:27:13 +0200 Subject: Add cleanup option to remove old tracked items --- src/fileutils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fileutils.h') diff --git a/src/fileutils.h b/src/fileutils.h index 9f8f4fe..979f656 100644 --- a/src/fileutils.h +++ b/src/fileutils.h @@ -8,6 +8,8 @@ const char* get_home_dir(); int file_get_content(const char *filepath, char **data, long *size); /* Returns 0 on success (if the directories are created or if the directories already exists) */ int create_directory_recursive(char *path); +/* Returns 0 on success */ +int remove_recursive(char *path); /* Returns 0 if the file exists */ int file_exists(const char *path); /* Returns 0 on success */ -- cgit v1.2.3