Fix removing folder with unicode filenames

https://bugs.python.org/issue3616
pull/1/head
Sergei Lubianov 2015-10-19 10:03:50 +03:00
parent 17e878a15f
commit 0319e7bb93
1 changed files with 1 additions and 1 deletions

View File

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