feat: User can choose to import entire tree when importing content #1691
Labels
area/screen/files
Issues related to Files screen
effort/days
Estimated to take multiple days, but less than a week
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P3
Low: Not priority right now
status/ready
Ready to be worked
Describe the bug
"Import from IPFS" implies it will fetch the content to your local repo. Currently It only fetches the root block, as, for reasons I do not yet understand that is how
ipfs files cp
works. It does not check if you have the full tree locally.from the go-ipfs help, it looks like the assumption is that you will
ipfs add
something or otherwise ensure the blocks are available locally, and thenipfs files cp
it to your mfs:we can do a recursive refs fetch or similar to make "import from IPFS" do what it sounds like it would do.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Import from IPFS should add the blocks to my repo and
ipfs files cp
them into the MFS. If we want to be smart about it we could stat the root block and if it is larger than would fit in the users repo, then warn them and ask if they want to do a lazy import.The text was updated successfully, but these errors were encountered: