Show More
@@ -730,6 +730,11 b' class _fncachevfs(vfsmod.proxyvfs):' | |||||
730 | else: |
|
730 | else: | |
731 | return self.vfs.join(path) |
|
731 | return self.vfs.join(path) | |
732 |
|
732 | |||
|
733 | def register_file(self, path): | |||
|
734 | """generic hook point to lets fncache steer its stew""" | |||
|
735 | if path.startswith(b'data/') or path.startswith(b'meta/'): | |||
|
736 | self.fncache.add(path) | |||
|
737 | ||||
733 |
|
738 | |||
734 | class fncachestore(basicstore): |
|
739 | class fncachestore(basicstore): | |
735 | def __init__(self, path, vfstype, dotencode): |
|
740 | def __init__(self, path, vfstype, dotencode): |
@@ -329,6 +329,9 b' class abstractvfs(object):' | |||||
329 | None # pytype: disable=attribute-error |
|
329 | None # pytype: disable=attribute-error | |
330 | ) |
|
330 | ) | |
331 |
|
331 | |||
|
332 | def register_file(self, path): | |||
|
333 | """generic hook point to lets fncache steer its stew""" | |||
|
334 | ||||
332 |
|
335 | |||
333 | class vfs(abstractvfs): |
|
336 | class vfs(abstractvfs): | |
334 | """Operate files relative to a base directory |
|
337 | """Operate files relative to a base directory |
General Comments 0
You need to be logged in to leave comments.
Login now