summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-15 06:15:39 +0200
committerdefault <nobody@localhost>2023-06-15 06:15:39 +0200
commit14b2f697689fbdfa946b310d65ef3079ee7fec5b (patch)
treed3670c1b429039d2716c879ada71a0e4f094ffac /data.c
parent9a4ff572053b4e82f4e7d061fabe40c28b383eef (diff)
If a ~/log/ folder exists, also write the log there.
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data.c b/data.c
index 52e0f09..1633203 100644
--- a/data.c
+++ b/data.c
@@ -545,6 +545,9 @@ xs_list *index_list_desc(const char *fn, int skip, int show)
xs_str *_object_fn_by_md5(const char *md5)
{
+ if (!xs_is_hex(md5))
+ srv_log(xs_fmt("_object_fn_by_md5(): '%s' not hex", md5));
+
xs *bfn = xs_fmt("%s/object/%c%c", srv_basedir, md5[0], md5[1]);
mkdirx(bfn);