From bd21d144de18bf67facef287705e34ba030b46d8 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 14 Apr 2023 19:17:16 +0200 Subject: New function timeline_touch(). --- data.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'data.c') diff --git a/data.c b/data.c index 7071097..9f2e462 100644 --- a/data.c +++ b/data.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -870,6 +871,14 @@ double timeline_mtime(snac *snac) } +int timeline_touch(snac *snac) +/* changes the date of the timeline index */ +{ + xs *fn = xs_fmt("%s/private.idx", snac->basedir); + return utimes(fn, NULL); +} + + xs_str *timeline_fn_by_md5(snac *snac, const char *md5) /* get the filename of an entry by md5 from any timeline */ { -- cgit v1.2.3