Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content added via ipfs add command isnt listed in the Files page. #897

Open
royforu opened this issue Dec 5, 2018 · 5 comments
Open

Content added via ipfs add command isnt listed in the Files page. #897

royforu opened this issue Dec 5, 2018 · 5 comments
Labels
exp/expert Having worked on the specific codebase is important

Comments

@royforu
Copy link

royforu commented Dec 5, 2018

hi everyone,
i have two questions. First, when i finish adding files from CLI , files can not be seen on webui.
Similarity, when adding files from webui, it can not be seen on CLI using "ipfs pin ls" command.

Second, when i delete file from webui, it just disappear from webui screen and I check .ipfs/blocks repository, file is still there.

Thank for help.

@olizilla
Copy link
Member

olizilla commented Dec 12, 2018

Sorry for the confusion, this is a known issue, that we need to do a better job of visualising.

The Web UI is currently visualising your local filesystem view of your IPFS repo, which you interact with via the ipfs files commands. If you

$ ipfs files cp /ipfs/QmeoTsSvQvNtKxhHdPA3gy6RWD6ghVwdkjBeUWWPiHdmn6 /hello.txt

a file from an ipfs cid to a path in your local repo, it will show up in the files view on the web ui.

If you ls the root of your IPFS files view, you can see things that are in there

$ ipfs files ls /
hello.txt

ipfs add will chunk the file, add the blocks to the blockstore, and tell you the CID for the file, and pin it, but it won't create an alias for it in your filesystem view of your IPFS repo (internally refered to as the MFS, or mutable file system), so it won't show up in the files view in web ui. We have plans to show both the MFS and the rest of the repo, but it's not implemented yet. There is a UX challange around showing a long list of CIDs that exist in your repo that haven't been aliased to a file-system like view with useful names, but it's currently super suprising that you don't get to see things that you added, so it's a challenge we have to tackle.

@olizilla olizilla changed the title cli and webui are not synchronous Content added via ipfs add command isnt listed in the Files page. Dec 12, 2018
@olizilla olizilla added the exp/expert Having worked on the specific codebase is important label Dec 12, 2018
@royforu
Copy link
Author

royforu commented Dec 15, 2018

Thanks for your clearly reply and your work. i'm interested in ipfs somehow and hopefully i can contribute something like you and let more people to know it and use it to do something meaningful to let world better.~~

@immartian
Copy link

immartian commented Jul 18, 2019

Isn't a reasonable thing to concatenate ipfs files cp * * with ipfs add by default?

@elluck91
Copy link

elluck91 commented Jul 25, 2019

Isn't a reasonable thing to concatenate ipfs files cp * * with ipfs add by default?

My exact thought... Why not turn ipfs add into a wrapper for ipfs files? Does add command add anything beyond what files already does?

@frankenstein91
Copy link

frankenstein91 commented Sep 8, 2021

Is there a way to get all files & dirs I uploaded by now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/expert Having worked on the specific codebase is important
Projects
Development

No branches or pull requests

5 participants