mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
@@ -51,12 +51,11 @@ FILE *pathn(char *mode, char *prefix, UT_string *user, UT_string *device, char *
|
||||
|
||||
if (device) {
|
||||
ut_lower(device);
|
||||
utstring_printf(path, "%s/%s/%s/%s", JSONDIR, prefix, utstring_body(user), utstring_body(device));
|
||||
} else {
|
||||
utstring_printf(path, "%s/%s/%s", JSONDIR, prefix, utstring_body(user));
|
||||
}
|
||||
|
||||
//utstring_printf(path, "%s/%s/%-1.1s/%-2.2s",
|
||||
// JSONDIR, prefix, utstring_body(user), utstring_body(user));
|
||||
utstring_printf(path, "%s/%s/%s/%s", JSONDIR, prefix, utstring_body(user), utstring_body(device));
|
||||
|
||||
ut_clean(path);
|
||||
|
||||
if (mkpath(utstring_body(path)) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user