File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/ipfs-unixfs-exporter/src Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,19 @@ export interface ExporterOptions extends ProgressOptions<ExporterProgressEvents>
134
134
* (default: undefined)
135
135
*/
136
136
blockReadConcurrency ?: number
137
+
138
+ /**
139
+ * When directory contents are listed, by default the root node of each entry
140
+ * is fetched to decode the UnixFS metadata and know if the entry is a file or
141
+ * a directory. This can result in fetching extra data which may not be
142
+ * desirable, depending on your application.
143
+ *
144
+ * Pass false here to only return the CID and the name of the entry and not
145
+ * any extended metadata.
146
+ *
147
+ * @default true
148
+ */
149
+ extended ?: boolean
137
150
}
138
151
139
152
export interface BasicExporterOptions extends ExporterOptions {
You can’t perform that action at this time.
0 commit comments