equal
deleted
inserted
replaced
525 |
525 |
526 def __contains__(self, path): |
526 def __contains__(self, path): |
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 |
540 def store(requirements, path, vfstype): |
541 def store(requirements, path, vfstype): |
541 if 'store' in requirements: |
542 if 'store' in requirements: |