1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Fixes show folder not deleting if files remain in folder

This commit is contained in:
Adam 2014-10-02 19:20:03 +08:00
parent c19d5e1600
commit 4adad577c8

View File

@ -25,6 +25,7 @@ import re
import glob
import stat
import traceback
import shutil
import sickbeard
@ -1004,7 +1005,7 @@ class TVShow(object):
except:
logger.log(u'Cannot change permissions of ' + self.location, logger.WARNING)
ek.ek(os.rmdir, self.location)
ek.ek(shutil.rmtree, self.location)
except OSError, e:
logger.log(u"Unable to delete " + self.location + ": " + repr(e) + " / " + str(e), logger.WARNING)