When deleting a series, the loop that iterates through the files in
__trash_dir needs to add __trash_dir to the filename that it passes to
os.remove().
Signed-off-by: Roland Dreier <rolandd@cisco.com>
# remove the trash directory
for fname in os.listdir(self.__trash_dir):
# remove the trash directory
for fname in os.listdir(self.__trash_dir):
+ os.remove(os.path.join(self.__trash_dir, fname))
os.rmdir(self.__trash_dir)
# FIXME: find a way to get rid of those manual removals
os.rmdir(self.__trash_dir)
# FIXME: find a way to get rid of those manual removals