quickdel: Add notes for -f

This commit is contained in:
Eric Torres 2020-10-24 17:48:30 -07:00
parent 9e52506c56
commit 48ca334377

View File

@ -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):