Skip to content
Snippets Groups Projects
Commit 074803a8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon: Committed by Deucе
Browse files

Actually support the second (filename) argument, when specified

parent 6ab30667
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ if(argv.indexOf("-help") >= 0 || argv.indexOf("-?") >= 0) {
}
var code = argv[0];
var filename = argv[1];
while(!file_area.dir[code] && !js.terminated) {
for(var d in file_area.dir)
......@@ -24,6 +25,8 @@ if(!filebase.open()) {
var file_list = filebase.get_list();
for(var i = 0; i < file_list.length; i++) {
var file = file_list[i];
if(filename && !wildmatch(file.name, filename))
continue;
print(JSON.stringify(file, null, 4));
var hash = filebase.hash(file.name);
if(hash == null) {
......
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