You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: SPEC/FILES.md
+5
Original file line number
Diff line number
Diff line change
@@ -618,6 +618,7 @@ Where:
618
618
-`options` is an optional Object that might contain the following keys:
619
619
-`hash` is a Boolean value to return only the hash.
620
620
-`size` is a Boolean value to return only the size.
621
+
-`withLocal` is a Boolean value to compute the amount of the dag that is local, and if possible the total size.
621
622
622
623
`callback` must follow the `function (err, stat) {}` signature, where `err` is an Error if the operation was not successful and `stat` is an Object with the following keys:
623
624
@@ -626,6 +627,10 @@ Where:
626
627
-`cumulativeSize` is an integer with the cumulative size in Bytes.
627
628
-`blocks` is an integer indicating the number of blocks.
628
629
-`type` is a string that can be either `directory` or `file`.
630
+
-`withLocality` is a boolean to indicate if locality information are present.
631
+
-`local` is a boolean to indicate if the queried dag is fully present locally.
632
+
-`sizeLocal` is an integer indicating the cumulative size of the data present locally.
633
+
629
634
630
635
If no `callback` is passed, a promise is returned.
0 commit comments