Skip to content
Snippets Groups Projects
Commit ee3c4b25 authored by rswindell's avatar rswindell
Browse files

Fix previous commit:

String.slice(0, -8) is not the same thing as String.slice(-8).
parent 55dffae6
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ function lock_flow(file)
return true;
}
log(LOG_DEBUG, "Locking "+ret.bsy.name);
if(!mkpath(ret.bsy.name.slice(-file_getname(ret.bsy.name).length)))
if(!mkpath(ret.bsy.name.slice(0, -file_getname(ret.bsy.name).length)))
log(LOG_WARNING, "MKPATH ERROR " + errno + " (" + errno_str + "): " + ret.bsy.name);
if (!ret.bsy.open("wb")) { // Used to include 'e' mode flag (which never worked)
log(LOG_WARNING, "Error " + ret.bsy.error + " creating " + ret.bsy.name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment