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.
A utility to allow files on the file system to be easily added to IPFS.
381
+
382
+
###### `globSource(path, [options])`
383
+
384
+
-`path`: A path to a single file or directory to glob from
385
+
-`options`: Optional options
386
+
-`options.recursive`: If `path` is a directory, use option `{ recursive: true }` to add the directory and all its sub-directories.
387
+
-`options.ignore`: To exclude file globs from the directory, use option `{ ignore: ['ignore/this/folder/**', 'and/this/file'] }`.
388
+
-`options.hidden`: Hidden/dot files (files or folders starting with a `.`, for example, `.git/`) are not included by default. To add them, use the option `{ hidden: true }`.
389
+
390
+
Returns an async iterable that yields `{ path, content }` objects suitable for passing to `ipfs.add`.
0 commit comments