Introduce ipfs files write --nocopy
or equivalent
#8636
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
Checklist
Description
Currently, if you want to add files to IPFS and to the MFS, but without duplicating data by creating the files in the database, you need to do
ipfs add --nocopy
andipfs files write
afterwards.Instead, I propose a
ipfs files write --nocopy
(or similar single command, whatever makes the most sense) to simplify adding a file to the MFS without duplicating files in the database. This idea was sparked from a conversation on Matrix where someone wanted to add a large amount of files to the MFS without duplicating them.Although it's currently possible to achieve this by combining the
add
andfiles write
commands into one, it's not ideal.Note, #8504 means that
ipfs files write
itself could be replaced withipfs files add
in future. In which case, I propose--nocopy
should be an option for that command if it's not already been considered.The text was updated successfully, but these errors were encountered: