-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Rename ipfs files
commands to ipfs mfs
#5862
Comments
I agree this is really confusing. I believe the (nebulous) plan is to go the other way and:
However, we've been holding off on features like this until we're ready for an API v2. I'm not sure if there are even any design docs for this yet. |
Adding an |
What I dont understand is in |
Might be my lack of exposure to IPFS but another thing that confuses me is |
Yes, another great question (please add it to the documentation issue). The short answer is: we "discard" it, in the sense that we return its hash to the user if the (When I say great question I mean it, because I didn't write the answer off the top of my head, I had to go back to the code and check, and I had to think of the difference between the |
Yes, we've discussed this many times across different issues but I'm not sure what was the final decision.. |
I have got to read through the the |
Actually you'll need to check (although you may need to get a sense of our republisher system to understand this, basically when we flush a file or close the MFS root -daemon shutdown or end of a standalone CLI command- the publish |
So you mean IPFS will actually look like a hierarchical filesystem some day? It's been years already without having that feature, so it looks to me like mfs/unixfs is a subset of the whole IPFS datastore: you can use it as a local filesystem, but it's mainly not for sharing; whereas when you do "ipfs add" you just get a hash, which you can share, and that's intended more for publishing web sites and such. But it sortof makes sense to have everything accessible in a single-rooted hierarchy like a filesystem, but is that really where you guys are going? It's a much more conventional way of working. I'm trying to build a graphical client (combined editor/browser) so I'm baking in my assumptions about how things work, and then suddenly I read this bug and find that maybe I don't understand where it's going at all. Also, files/ls doesn't provide the hashes of the files by default (but that's mentioned in #5026) which seems like an odd choice if the idea is to first add files to unixfs and then share the hashes of some subdirs, for example. But if the intention is to combine |
Personally, I'd like to move in this direction. However, we probably won't for a while. However, form a UX perspective, I recommend exposing MFS to users rather than pins. That's what the ipfs-desktop and the current WebUI do, as far as I know.
A concern here is performance. Ideally, we wouldn't be forced to materialize hashes of anything until we need them. To get the hash, you'd call |
I'm not even sure we can do this without breaking too much stuff but I wanted to draw some attention to the fact that our family of
ipfs files
command, documented asactually seems to deal exclusively with MFS (not just any UnixFS file), that is (rewording this question), if I add content with
ipfs add
creating a UnixFS file, that file actually won't be accessible with theipfs files
command (e.g.,ipfs files ls
) since I need to add it to the MFS first. There doesn't seem to be any clear hint about this, not in the name of the command nor in its documentation.The text was updated successfully, but these errors were encountered: