From 0319e7bb936a23ba71b9285598f4e28b8173e306 Mon Sep 17 00:00:00 2001 From: Sergei Lubianov Date: Mon, 19 Oct 2015 10:03:50 +0300 Subject: [PATCH] Fix removing folder with unicode filenames https://bugs.python.org/issue3616 --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index b4aa9da..9c4105c 100644 --- a/functions.py +++ b/functions.py @@ -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: