mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2b293865c3
commit
e0bd0df98f
@ -469,6 +469,8 @@ class DirContainer(object):
|
|||||||
return f.write(data)
|
return f.write(data)
|
||||||
|
|
||||||
def exists(self, path):
|
def exists(self, path):
|
||||||
|
if not path:
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
path = os.path.join(self.rootdir, self._unquote(path))
|
path = os.path.join(self.rootdir, self._unquote(path))
|
||||||
except ValueError: #Happens if path contains quoted special chars
|
except ValueError: #Happens if path contains quoted special chars
|
||||||
|
Loading…
x
Reference in New Issue
Block a user