From 48ca334377e50210f605587d3d94677b45978535 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sat, 24 Oct 2020 17:48:30 -0700 Subject: [PATCH] quickdel: Add notes for -f --- bin/quickdel | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/quickdel b/bin/quickdel index a1774b0..3c21076 100755 --- a/bin/quickdel +++ b/bin/quickdel @@ -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):