OSDN Git Service

implement auto_delete temp file.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 30 Jul 2010 23:45:05 +0000 (23:45 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 30 Jul 2010 23:45:05 +0000 (23:45 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@655 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/auto_move.py

index 6c8b312..277992a 100644 (file)
@@ -138,8 +138,9 @@ def execDelete(title,temppath):
     recdblist.printutf8(title+u" 関連の一時ファイルを削除します")
     for dp in delpath:
         try:
-            recdblist.printutf8(dp)
-            os.remove(dp)
+            if os.path.exists(path):
+                recdblist.printutf8(dp)
+                os.remove(dp)
             ""
         except:
             ""
\ No newline at end of file