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

Auto-detect/correct filename case from file lists

Addresses issue reported by Dumas Walker (CAPCITY2) and kk4qbn (KK4QBN)
whereby the list contains filenames in the wrong case.
parent 8dacb902
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -230,10 +230,13 @@ for(var d = 0; d < dir_list.length; d++) {
continue;
}
var path = file_area.dir[code].path + file.name;
if(!file_exists(path)) {
var realpath = file_getcase(path);
if(!realpath)) {
alert("does not exist: " + path);
continue;
}
path = realpath;
file.name = file_getname(path);
if(options.date)
file.desc = datestr(time()) + " " + (file.desc || "");
else if(options.fdate)
......
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