-
-
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
Document the code flow of adding a file using ipfs add <file>
command.
#5858
Comments
Oh, you can't, sorry, forgot about the permissions bla blah, I'll take care of that. |
As a first step I would skip all the options handling code in the CoreAPI and go directly to |
@schomatis Ok that makes it much easier to capture. |
Also some of the documentation of #5081 and related (now a bit outdated) may contain useful information overlapping with this. |
Will make sure I capture all the important contents from the issue. |
@schomatis Quick question to resolve my confusion. How is it that if I add a file through the WebGUI I can list it using |
Excellent question! I don't have time at the moment for the full answer but the summary would be: the are two layers of abstraction at play here, when I add a file with Everything is a UnixFS file, but not every UnixFS file you add lives in your MFS. (please ping me later about this subject for a more detailed answer and lets get this in https://github.com/ipfs/docs/issues/133, I can't begin to tell you how useful this question is, this is something I also wondered about when I started with this, and then I forgot about it) |
@schomatis I have a short writeup in Markdown format ready for this task. Where do you want me to add it ? Should this go in the ipfs/docs, under contents ? |
Open a PR in this repo (in the |
#5864 Created a PR in the |
PH to capture the life of the
ipfs add <file>
command from the CLI, to highlight :addCmd()
toadder.AddAllAndPin()
)UnixfsAPI
interface / implementation.The text was updated successfully, but these errors were encountered: