This commit is contained in:
Kovid Goyal 2012-06-26 09:48:58 +05:30
parent 2b293865c3
commit e0bd0df98f

View File

@ -469,6 +469,8 @@ class DirContainer(object):
return f.write(data)
def exists(self, path):
if not path:
return False
try:
path = os.path.join(self.rootdir, self._unquote(path))
except ValueError: #Happens if path contains quoted special chars