gpodder.util: Fix a bug in delete_empty_folders
The bug could have caused an empty directory in the current working directory to be removed if an empty folder of the same name exists in the download directory.
This commit is contained in:
parent
b0d83b90bf
commit
2728172b28
|
@ -1763,5 +1763,5 @@ def delete_empty_folders(top):
|
|||
for name in dirs:
|
||||
dirname = os.path.join(root, name)
|
||||
if not os.listdir(dirname):
|
||||
os.rmdir(name)
|
||||
os.rmdir(dirname)
|
||||
|
||||
|
|
Loading…
Reference in New Issue