This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Consider enabling add(path)
to the files API #118
Closed
Description
@jbenet brought up that a lot of users will expect ipfs.add(path)
to just work as if they were in the terminal.
In the past, we went through several iterations and discussions and eventually ended up agreeing that it would be beneficial to have utilities like addFromFs and addFromUrl as actions that are explicit, this keeps the promise intact that code can be run in the browser and in Node.js, as long as the dev is using the ipfs-core API.
We can add this feature, we will just need to be verbose about that caveat.