OSDN Git Service

implement auto delete.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 7 Aug 2010 07:23:43 +0000 (07:23 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 7 Aug 2010 07:23:43 +0000 (07:23 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@666 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/auto_move.py
rec10/trunk/src/classify.py

index 277992a..2dbd507 100644 (file)
@@ -141,6 +141,6 @@ def execDelete(title,temppath):
             if os.path.exists(path):
                 recdblist.printutf8(dp)
                 os.remove(dp)
-            ""
-        except:
-            ""
\ No newline at end of file
+        except Exception, inst:
+            print type(inst)
+            print str(inst)
\ No newline at end of file
index beabc4c..bcf1297 100644 (file)
@@ -62,7 +62,7 @@ if __name__ == "__main__":
                 auto_move.execMove(t, recpath, recordedpath,".mp4",1)
             else:
                 recdblist.printutf8(t+" can't find matching folder")
-    elif opts.delete:
+    elif opts.delete:##-Dの場合
         sa=auto_move.search_file(recpath, recordedpath,".mkv")
         for t in sa:
             auto_move.execDelete(t, recpath)