Skip to content
Snippets Groups Projects
Commit 0734ca9f authored by Martin Blanchard's avatar Martin Blanchard
Browse files

_casbaseddirectory.py: Add a method for hash recalculation

parent 513ee6c0
No related branches found
No related tags found
No related merge requests found
......@@ -543,6 +543,15 @@ class CasBasedDirectory(Directory):
filelist.append(k)
return filelist
def recalculate_hash(self):
""" Recalcuates the hash for this directory and store the results in
the cache. If this directory has a parent, tell it to
recalculate (since changing this directory changes an entry in
the parent). Hashes for subdirectories also get recalculated.
"""
self._recalculate_recursing_up()
self._recalculate_recursing_down()
def _get_identifier(self):
path = ""
if self.parent:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment