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

Add -readd option to mark any updated existing files as newly-uploaded

parent 808c9782
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -59,6 +59,7 @@ for(var i = 0; i < argc; i++) {
writeln(" (default: " + default_excludes.join(',') + ")");
writeln(" -diz always extract/use description in archive");
writeln(" -update update existing file entries (default is to skip them)");
writeln(" -readd re-add existing file entries (so they appears as newly-uploaded");
writeln(" -date[=fmt] include today's date in description");
writeln(" -fdate[=fmt] include file's date in description");
writeln(" -adate[=fmt] include newest archived file date in description");
......@@ -246,7 +247,7 @@ for(var d = 0; d < dir_list.length; d++) {
file.md5 = hash.md5;
file.sha1 = hash.sha1;
}
if(!filebase.update(file.name, file, options.diz)) {
if(!filebase.update(file.name, file, options.diz, options.readd)) {
alert("Error " + filebase.last_error + " updating " + file.name);
} else {
writeln("Updated " + 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