File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments