Skip to content

Commit 37a2a70

Browse files
update readme
1 parent 5fb1d6b commit 37a2a70

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,17 @@ class StorageObject(
196196
# return the size in bytes
197197
...
198198

199+
@retry_decorator
200+
def local_footprint(self) -> int:
201+
# Local footprint is the size of the object on the local disk.
202+
# For directories, this should return the recursive sum of the
203+
# directory file sizes.
204+
# If the storage provider supports ondemand eligibility (see retrieve_object()
205+
# below), this should return 0 if the object is not downloaded but e.g.
206+
# mounted upon retrieval.
207+
# If this method is not overwritten here, it defaults to self.size().
208+
...
209+
199210
@retry_decorator
200211
def retrieve_object(self):
201212
# Ensure that the object is accessible locally under self.local_path()

0 commit comments

Comments
 (0)