Commits

Marcin Kasperski  committed fb1c1fc

Identical files are also moved if --move option is in use

  • Participants
  • Parent commits 78b8597

Comments (0)

Files changed (1)

File src/mekk/calibre/scripts/add_if_missing.py

                            force_title=force_title,
                            force_tags=options.tag,
                            force_author=options.author)
-            if options.move:
-                shutil.move(file_name, options.move)
             added_count += 1
 
+        if options.move:
+            shutil.move(file_name, options.move)
+
     print
     print "%d files already present, %d added" % (skipped_count, added_count)