##// END OF EJS Templates
store: use "vfs.exists()" instead of "os.path.exists()"
FUJIWARA Katsunori -
r19903:ca875b27 default
parent child Browse files
Show More
@@ -344,12 +344,12 b' class basicstore(object):'
344 '''Checks if the store contains path'''
344 '''Checks if the store contains path'''
345 path = "/".join(("data", path))
345 path = "/".join(("data", path))
346 # file?
346 # file?
347 if os.path.exists(self.join(path + ".i")):
347 if self.vfs.exists(path + ".i"):
348 return True
348 return True
349 # dir?
349 # dir?
350 if not path.endswith("/"):
350 if not path.endswith("/"):
351 path = path + "/"
351 path = path + "/"
352 return os.path.exists(self.join(path))
352 return self.vfs.exists(path)
353
353
354 class encodedstore(basicstore):
354 class encodedstore(basicstore):
355 def __init__(self, path, vfstype):
355 def __init__(self, path, vfstype):
General Comments 0
You need to be logged in to leave comments. Login now