diff options
author | default <nobody@localhost> | 2023-06-15 06:15:39 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-15 06:15:39 +0200 |
commit | 14b2f697689fbdfa946b310d65ef3079ee7fec5b (patch) | |
tree | d3670c1b429039d2716c879ada71a0e4f094ffac /data.c | |
parent | 9a4ff572053b4e82f4e7d061fabe40c28b383eef (diff) |
If a ~/log/ folder exists, also write the log there.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |