aboutsummaryrefslogtreecommitdiff
path: root/src/fileutils.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-11 09:27:13 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-11 09:27:13 +0200
commiteaa0851500c111a0fe5a50bc3f8b5aa4354774db (patch)
tree8943d519265aec26e5fac2575f492293d820788c /src/fileutils.h
parentcff81a0630937e0ffd59198a43a18f6c2b66b19a (diff)
Add cleanup option to remove old tracked items
Diffstat (limited to 'src/fileutils.h')
-rw-r--r--src/fileutils.h2
1 files changed, 2 insertions, 0 deletions
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 */