From: Scott Worley Date: Sun, 2 Mar 2014 08:05:07 +0000 (-0800) Subject: shell_out shouldn't list deleted pics X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/f1b39471d1c70a9b47ef3716bbe5fc9591a70957?ds=sidebyside shell_out shouldn't list deleted pics --- diff --git a/picsorter.js b/picsorter.js index 31ae640..e8a92a2 100644 --- a/picsorter.js +++ b/picsorter.js @@ -152,7 +152,8 @@ function shell_escape(x) { function show_commands() { var commands = []; $.each(files, function(i, f) { - if ("name" in picinfo[f] && picinfo[f].name.length > 0) { + if ("name" in picinfo[f] && picinfo[f].name.length > 0 && + !("deleted" in picinfo[f])) { var command = ["pic-mv"]; if ("exposure" in picinfo[f]) { command.push("-e " + picinfo[f].exposure);