diff options
author | default <nobody@localhost> | 2023-04-14 19:17:16 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-14 19:17:16 +0200 |
commit | bd21d144de18bf67facef287705e34ba030b46d8 (patch) | |
tree | 6297a76d751bc93d3be414b473e2470c27b022e6 /data.c | |
parent | 9ce6fb03edbaa069ebc42f72ac10e3d8e93b3b0e (diff) |
New function timeline_touch().
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -14,6 +14,7 @@ #include <time.h> #include <sys/stat.h> #include <sys/file.h> +#include <sys/time.h> #include <fcntl.h> #include <pthread.h> @@ -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 */ { |