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:
Thomas Perl 2014-05-23 15:18:43 +02:00
parent b0d83b90bf
commit 2728172b28
1 changed files with 1 additions and 1 deletions

View File

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