From 7b0eaa806f2cfc84e4c26f8f608e1d4e4843ea05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 28 Nov 2021 04:37:59 +0300 Subject: Clean out old files/dirs Delete extraneous files/images/albums that are no longer present in the source directory. --- include/components.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/components.h') 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 *); -- cgit v1.2.3