Merge pull request #9 from srgl/fix-rmtree-unicode

Fix removing folder with unicode filenames
pull/1/head
DiMartinoXBMC 2015-10-19 21:47:56 +03:00
commit ed8e9b201c
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def clearStorage(userStorageDirectory):
shutil.move(saved, saved_temp)
saved_bool = True
shutil.rmtree(userStorageDirectory, ignore_errors=True)
shutil.rmtree(userStorageDirectory.encode('utf-8'), ignore_errors=True)
xbmcvfs.mkdir(userStorageDirectory)
if torrents_bool: