X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8417bf754051966915b93c362624ebdcd492d660..4d95f6cc422bc4dea97da79bbfbb2e7809ee20fc:/services/fuse/arvados_fuse/fusedir.py diff --git a/services/fuse/arvados_fuse/fusedir.py b/services/fuse/arvados_fuse/fusedir.py index f3f3c96685..3f2bcd5ec2 100644 --- a/services/fuse/arvados_fuse/fusedir.py +++ b/services/fuse/arvados_fuse/fusedir.py @@ -320,6 +320,11 @@ class CollectionDirectoryBase(Directory): self.flush() src.flush() + def clear(self, force=False): + r = super(CollectionDirectoryBase, self).clear(force) + self.collection = None + return r + class CollectionDirectory(CollectionDirectoryBase): """Represents the root of a directory tree representing a collection.""" @@ -641,6 +646,7 @@ will appear if it exists. def want_event_subscribe(self): return not self.pdh_only + class RecursiveInvalidateDirectory(Directory): def invalidate(self): try: @@ -661,6 +667,9 @@ class TagsDirectory(RecursiveInvalidateDirectory): self._poll = True self._poll_time = poll_time + def want_event_subscribe(self): + return True + @use_counter def update(self): with llfuse.lock_released: