quickdel: Add notes for -f
This commit is contained in:
parent
9e52506c56
commit
48ca334377
@ -164,6 +164,8 @@ if __name__ == "__main__":
|
||||
os.remove(f)
|
||||
|
||||
# Check -f, --force-directory-delete option
|
||||
# shutil.rmtree forcibly removes directories
|
||||
# os.rmdir removes directories only if they are empty
|
||||
rmdir_func = shutil.rmtree if args.force_directory_delete else os.rmdir
|
||||
|
||||
for d in filter(os.path.isdir, files):
|
||||
|
Loading…
x
Reference in New Issue
Block a user