From c011b4208d99d92491dd0a65cb5ac0f591d52cfb Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Fri, 30 Jul 2010 23:45:05 +0000 Subject: [PATCH] implement auto_delete temp file. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@655 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/auto_move.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rec10/trunk/src/auto_move.py b/rec10/trunk/src/auto_move.py index 6c8b312..277992a 100644 --- a/rec10/trunk/src/auto_move.py +++ b/rec10/trunk/src/auto_move.py @@ -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 -- 2.11.0