From 48e757baffbf75bc8a1e4171ad94c27d7356cafa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 7 May 2021 07:38:59 +0200 Subject: Migrate mangadex to new api, remove .in_progress files in tracked dir if they are old --- src/fileutils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fileutils.h') diff --git a/src/fileutils.h b/src/fileutils.h index 979f656..e243a89 100644 --- a/src/fileutils.h +++ b/src/fileutils.h @@ -2,10 +2,13 @@ #define FILEUTILS_H #include +#include const char* get_home_dir(); /* Returns 0 on success */ int file_get_content(const char *filepath, char **data, long *size); +/* Returns 0 on success */ +int file_get_last_modified_time(const char *path, time_t *last_modified); /* 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 */ -- cgit v1.2.3