Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163784
D4235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
424 B
Subscribers
None
D4235.diff
View Options
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:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 3:35 PM (1 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216396
Attached To
D4235: Rework unit testing framework and add more tests
Event Timeline
Log In to Comment