Fix check whether a file exists
This commit is contained in:
parent
1d991fd606
commit
25aacc8495
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue