]> git.scottworley.com Git - picsort/commitdiff
shell_out shouldn't list deleted pics
authorScott Worley <scottworley@scottworley.com>
Sun, 2 Mar 2014 08:05:07 +0000 (00:05 -0800)
committerScott Worley <scottworley@scottworley.com>
Sun, 2 Mar 2014 08:05:07 +0000 (00:05 -0800)
picsorter.js

index 31ae640d9a2c25ace09ec644024c2c65758abbd2..e8a92a2ed6eec0c5171ef2f427f0757c684d5715 100644 (file)
@@ -152,7 +152,8 @@ function shell_escape(x) {
 function show_commands() {
   var commands = [];
   $.each(files, function(i, f) {
 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);
       var command = ["pic-mv"];
       if ("exposure" in picinfo[f]) {
         command.push("-e " + picinfo[f].exposure);