Skip to content
Snippets Groups Projects
Commit 68e3b4d0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log/output an alert if the max files for a dir has been reached or exceeded

parent 5d5964b9
No related branches found
No related tags found
No related merge requests found
......@@ -299,6 +299,9 @@ for(var d = 0; d < dir_list.length; d++) {
} else {
writeln("Added " + file.name);
added++;
if(dir.max_files > 0 && filebase.files >= dir.max_files)
alert("Max files (" + dir.max_files + ") " +
(filebase.files > dir.max_files ? "exceeded" : "reached"));
}
}
}
......
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