mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-04 18:33:38 +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 glob
|
||||||
import stat
|
import stat
|
||||||
import traceback
|
import traceback
|
||||||
|
import shutil
|
||||||
|
|
||||||
import sickbeard
|
import sickbeard
|
||||||
|
|
||||||
|
@ -1004,7 +1005,7 @@ class TVShow(object):
|
||||||
except:
|
except:
|
||||||
logger.log(u'Cannot change permissions of ' + self.location, logger.WARNING)
|
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:
|
except OSError, e:
|
||||||
logger.log(u"Unable to delete " + self.location + ": " + repr(e) + " / " + str(e), logger.WARNING)
|
logger.log(u"Unable to delete " + self.location + ": " + repr(e) + " / " + str(e), logger.WARNING)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue