镜像自地址
https://github.com/arsenetar/dupeguru.git
已同步 2025-09-11 17:58:17 +00:00
[#62 state:fixed] Wrapped winshell exception.
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40164
这个提交包含在:
父节点
354babc417
当前提交
ff86624c3e
@ -8,7 +8,14 @@
|
||||
# which should be included with this package. The terms are also available at
|
||||
# http://www.hardcoded.net/licenses/hs_license
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import logging
|
||||
|
||||
import winshell
|
||||
|
||||
def recycle_file(path):
|
||||
winshell.delete_file(unicode(path), no_confirm=True)
|
||||
try:
|
||||
winshell.delete_file(unicode(path), no_confirm=True, silent=True)
|
||||
except winshell.x_winshell as e:
|
||||
logging.warning("winshell error: %s", e)
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户