From 31d21bb161fbf123a2c9f7ef5ce72d4197ecc9be Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 14 Jun 2007 05:34:59 +0000 Subject: [PATCH] remove dir even if it has empty dirs left over --- src/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index f175bdc6c..2a530aae8 100644 --- a/src/core.py +++ b/src/core.py @@ -317,7 +317,7 @@ class Manager: except OSError: pass # No file just means it wasn't downloaded, we can continue #clean up empty dir - os.rmdir(os.path.dirname(os.path.join(temp.save_dir, filename))) + os.removedirs(os.path.dirname(os.path.join(temp.save_dir, filename))) # A function to try and reload a torrent from a previous session. This is # used in the event that Deluge crashes and a blank state is loaded.