Show More
@@ -527,13 +527,14 b' class fncachestore(basicstore):' | |||
|
527 | 527 | '''Checks if the store contains path''' |
|
528 | 528 | path = "/".join(("data", path)) |
|
529 | 529 | # check for files (exact match) |
|
530 |
|
|
|
530 | e = path + '.i' | |
|
531 | if e in self.fncache and self._exists(e): | |
|
531 | 532 | return True |
|
532 | 533 | # now check for directories (prefix match) |
|
533 | 534 | if not path.endswith('/'): |
|
534 | 535 | path += '/' |
|
535 | 536 | for e in self.fncache: |
|
536 | if e.startswith(path): | |
|
537 | if e.startswith(path) and self._exists(e): | |
|
537 | 538 | return True |
|
538 | 539 | return False |
|
539 | 540 |
General Comments 0
You need to be logged in to leave comments.
Login now