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

New script that just re-adds (updates index position/date-time) files

If you want to "touch" a file in the filebase (so it appears a new again)
this is the script to use to do that.
parent f398b5f3
No related branches found
No related tags found
No related merge requests found
if(argc < 1) {
alert("No directory code specfiied");
exit(0);
}
var fbase = new FileBase(argv[0]);
if(!fbase.open()) {
alert("failed to open base");
exit(1);
}
var file_list = fbase.get_list(argv[1] || "*", FileBase.DETAIL.NORM);
for(var i in file_list) {
var file = file_list[i];
print("Updating " + file.name);
fbase.update(file.name, file, /* use_diz_always: */true, /* re-add: */true);
}
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