toImportCandidate(file): { path: string; get content(): any; }
Convert the passed file to an "import candidate" - an object suitable for
passing to the ipfs-unixfs-importer. Note: content is an accessor so that
the stream is only created when needed.
Convert the passed file to an "import candidate" - an object suitable for passing to the ipfs-unixfs-importer. Note: content is an accessor so that the stream is only created when needed.