diff --git a/swh/fuse/fs/artifact.py b/swh/fuse/fs/artifact.py --- a/swh/fuse/fs/artifact.py +++ b/swh/fuse/fs/artifact.py @@ -39,7 +39,8 @@ async def get_content(self) -> bytes: data = await self.fuse.get_blob(self.swhid) - self.prefetch["length"] = len(data) + if not self.prefetch: + self.prefetch = {"length": len(data)} return data async def size(self) -> int: