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

Don't use 'undefined' for missing file descriptions

Just a blank string instead.
parent a5e250ae
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -232,11 +232,11 @@ for(var d = 0; d < dir_list.length; d++) {
continue;
}
if(options.date)
file.desc = datestr(time()) + " " + file.desc;
file.desc = datestr(time()) + " " + (file.desc || "");
else if(options.fdate)
file.desc = datestr(file_date(path)) + " " + file.desc;
file.desc = datestr(file_date(path)) + " " + (file.desc || "");
else if(options.adate)
file.desc = datestr(archive_date(path)) + " " + file.desc;
file.desc = datestr(archive_date(path)) + " " + (file.desc || "");
file.cost = file_size(path);
if(exists) {
var hash = filebase.hash(file.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