AV_Data_Capture.py:command params new add -m -d -c -i -g -z

This commit is contained in:
lededev
2021-10-08 13:02:52 +08:00
parent b87206870b
commit 8ab736e4fa
2 changed files with 135 additions and 78 deletions

View File

@@ -622,11 +622,3 @@ def file_modification_days(filename) -> int:
if days < 0:
return 9999
return days
# 检查文件是否是链接
def is_link(filename: str):
if os.path.islink(filename):
return True # symlink
elif os.stat(filename).st_nlink > 1:
return True # hard link Linux MAC OSX Windows NTFS
return False