##// END OF EJS Templates
store: fncache may contain non-existent entries (fixes b9a56b816ff2)
Adrian Buehlmann -
r17784:73e1ab39 default
parent child Browse files
Show More
@@ -527,13 +527,14 b' class fncachestore(basicstore):'
527 '''Checks if the store contains path'''
527 '''Checks if the store contains path'''
528 path = "/".join(("data", path))
528 path = "/".join(("data", path))
529 # check for files (exact match)
529 # check for files (exact match)
530 if path + '.i' in self.fncache:
530 e = path + '.i'
531 if e in self.fncache and self._exists(e):
531 return True
532 return True
532 # now check for directories (prefix match)
533 # now check for directories (prefix match)
533 if not path.endswith('/'):
534 if not path.endswith('/'):
534 path += '/'
535 path += '/'
535 for e in self.fncache:
536 for e in self.fncache:
536 if e.startswith(path):
537 if e.startswith(path) and self._exists(e):
537 return True
538 return True
538 return False
539 return False
539
540
General Comments 0
You need to be logged in to leave comments. Login now