diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-28 04:37:59 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-28 04:37:59 +0300 |
commit | 7b0eaa806f2cfc84e4c26f8f608e1d4e4843ea05 (patch) | |
tree | fd7ca9abad667e43c75aa09580dd145448ff72a5 /include/components.h | |
parent | e2a71b0366aa80a7cf131fdbde6012671493d364 (diff) | |
download | revela-7b0eaa806f2cfc84e4c26f8f608e1d4e4843ea05.tar.gz revela-7b0eaa806f2cfc84e4c26f8f608e1d4e4843ea05.zip |
Clean out old files/dirs
Delete extraneous files/images/albums that are no longer present in the
source directory.
Diffstat (limited to 'include/components.h')
-rw-r--r-- | include/components.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/components.h b/include/components.h index c56de77..e65a66a 100644 --- a/include/components.h +++ b/include/components.h @@ -57,11 +57,14 @@ struct album { /* The date of the album is the date of the earliest image */ time_t tstamp; struct bstree *images; + /* Files/dirs that belong to images and which shouldn't be deleted */ + struct hashmap *preserved; /* Hashmap with values to be passed to the template */ struct hashmap *map; /* Vector with hashmaps of images to be passed to the templates */ struct vector *thumbs; struct vector *previews; + size_t images_updated; }; struct image *image_new(char *src, const struct stat *, struct album *); |