Fix check whether a file exists

This commit is contained in:
croneter 2019-01-28 09:22:36 +01:00
parent 1d991fd606
commit 25aacc8495

View file

@ -56,7 +56,7 @@ def translate_path(path):
def exists(path): def exists(path):
"""Returns True if the path [unicode] exists""" """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): def rmtree(path, *args, **kwargs):