aboutsummaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:43:29 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:43:29 +0300
commit43d153c00bb067276d3cda141ad62de27cb4971d (patch)
treebc878c5a9a306d1ce9aba8adc5a8eb000d2afa23 /include/fs.h
parentefd8f03262f5cfeedbf2bef0f05636088b39d679 (diff)
downloadrevela-d2d93f1c9c615b60772e560a05fde594863f8e21.tar.gz
revela-d2d93f1c9c615b60772e560a05fde594863f8e21.zip
Cleanup & fix new album images not being renderedv0.1.3
* Cleaned up some code and formatted with clang-format * Fix the result of what can only be explained as me having a brain-fart^1 leading me to write returns where they shouldn't be hence the image-walk loop returning early when new images were added to an album. * Also cleaned up and fixed a bug in roscha; more in roscha's own repo. 1: https://www.youtube.com/watch?v=UN7SBXJj2pc
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/fs.h b/include/fs.h
index 71c566b..6d405a4 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -14,12 +14,12 @@ enum nmkdir_res {
NMKDIR_CREATED,
};
-/*
+/*
* Returns a pointer to where the basename of the file is inside path.
*/
const char *rbasename(const char *path);
-/*
+/*
* Makes a new directory if it doesn't exist. If there were errors returns
* false, otherwise returns true.
*/
@@ -49,23 +49,23 @@ const char *delext(const char *restrict basename, char *restrict dest, size_t n)
*/
int file_is_uptodate(const char *path, const struct timespec *srcmtim);
-/*
+/*
* Sets access and modification times to the time passed.
*/
void setdatetime(const char *path, const struct timespec *mtim);
bool rmentry(const char *path, bool dry);
-/*
+/*
* Recursively deletes extaneous files from directory, keeping files in the
* preserved hmap. Returns -1 on error, number of deleted entries on success.
* The number is not the total number of files on all subdirectories, but only
* the number of files/dirs deleted from the directory pointed by path.
*/
ssize_t rmextra(const char *path, struct hmap *preserved, preremove_fn,
- void *data, bool dry);
+ void *data, bool dry);
-/*
+/*
* Copies file(s) truncating and overwritting the file(s) in the destination
* path if they exist and are not a directory, or creating them if they don't
* exist. If srcpath is a directory, copies all files within that directory
@@ -73,6 +73,6 @@ ssize_t rmextra(const char *path, struct hmap *preserved, preremove_fn,
* timestamps do not match.
*/
bool filesync(const char *restrict srcpath, const char *restrict dstpath,
- struct hmap *preserved, bool dry);
+ struct hmap *preserved, bool dry);
#endif