From 25aacc8495ec52fa34b3d88b78efa8aee2815ff4 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 28 Jan 2019 09:22:36 +0100 Subject: [PATCH] Fix check whether a file exists --- resources/lib/path_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/path_ops.py b/resources/lib/path_ops.py index e799cb68..adf96e2c 100644 --- a/resources/lib/path_ops.py +++ b/resources/lib/path_ops.py @@ -56,7 +56,7 @@ def translate_path(path): def exists(path): """Returns True if the path [unicode] exists""" - return xbmcvfs.exists(path.encode(KODI_ENCODING, 'strict')) + return xbmcvfs.exists(path.encode(KODI_ENCODING, 'strict')) == 1 def rmtree(path, *args, **kwargs):