1
0
镜像自地址 https://github.com/arsenetar/send2trash.git 已同步 2026-03-13 19:11:39 +00:00

Remove import *

这个提交包含在:
gbn
2011-03-10 12:21:05 -05:00
父节点 13b3943c82
当前提交 8001be8f37

查看文件

@@ -19,7 +19,7 @@ import os
import os.path as op import os.path as op
import logging import logging
from datetime import datetime from datetime import datetime
from stat import * import stat
FILES_DIR = 'files' FILES_DIR = 'files'
INFO_DIR = 'info' INFO_DIR = 'info'
@@ -100,7 +100,7 @@ def find_ext_volume_global_trash(volume_root):
mode = os.lstat(trash_dir).st_mode mode = os.lstat(trash_dir).st_mode
# vol/.Trash must be a directory, cannot be a symlink, and must have the # vol/.Trash must be a directory, cannot be a symlink, and must have the
# sticky bit set. # sticky bit set.
if not op.isdir(trash_dir) or op.islink(trash_dir) or not (mode & S_ISVTX): if not op.isdir(trash_dir) or op.islink(trash_dir) or not (mode & stat.S_ISVTX):
return None return None
trash_dir = op.join(trash_dir, str(uid)) trash_dir = op.join(trash_dir, str(uid))