Skip to content

Commit

Permalink
防止全选删除文件时将.user.ini误删
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Jul 3, 2019
1 parent 967092e commit 0387bd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion class/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,9 @@ def SetBatchData(self,get):
else:
shutil.rmtree(filename)
else:
if key == '.user.ini': os.system('chattr -i ' + filename);
if key == '.user.ini':
if l > 1: continue
os.system('chattr -i ' + filename);
if isRecyle:

self.Mv_Recycle_bin(get)
Expand Down

0 comments on commit 0387bd8

Please sign in to comment.