mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 05:33:37 +00:00
Fixes show folder not deleting if files remain in folder
This commit is contained in:
parent
c19d5e1600
commit
4adad577c8
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue