daca2: handle links better
This commit is contained in:
parent
ff5f223a1d
commit
007e2d9dd5
|
@ -110,6 +110,8 @@ def removeLargeFiles(path):
|
|||
for g in glob.glob(path + '*'):
|
||||
if g == '.' or g == '..':
|
||||
continue
|
||||
if os.path.islink(g):
|
||||
continue
|
||||
if os.path.isdir(g):
|
||||
removeLargeFiles(g + '/')
|
||||
elif os.path.isfile(g) and g[-4:] != '.txt':
|
||||
|
|
Loading…
Reference in New Issue