-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 listing commands better #3057
Comments
The commands don't print this out, but the API does provide the information, try:
If you want to have this information exposed as normal text output, we could add a flag (maybe To address your other point:
To better understand the purpose of each command I encourage you to take a look at the actual raw output that each command provides by adding the |
@whyrusleeping Thanks for the quick reply. I guess you're right in tagging it as a documentation issue. Would you appreciate concerete suggestions with regards to the descriptions of the commands? |
In addition to my latter remark, it seems that the Might it not preferable to have parts-of-files be labeled either as Raw or as some other type? The rationale for this being that parts of files should be treated differently (i.e. with regards to content type detection). |
Yes! that would be great.
This is as intended. A larger file will be 'sharded', indirect blocks have no real difference from the actual root node of the file, they get processed exactly the same way, and you can even refer to a sub-section of a file by the hash of one of the indirect blocks. The leaf nodes that don't have any children are marked as |
So the following descriptions would need updating:
For the descriptions I would interpret your previous comment. |
Looking into this a little further, specifically considering #2837 (allowing files command to handle ipfs paths), what added or specific functionality is meant for Again, would'nt it make sense to make |
Version/Platform/Processor information (from
ipfs version --all
): 16f8570 / 0.4.2Type (bug, feature, meta, test failure, question): feature
Area (api, commands, daemon, fuse, etc): api
Priority (from P0: functioning, to P4: operations on fire): P3
Description:
Currently, the
ipfs
command (and API) expose three different kinds of listing commands:ipfs ls
- listing links from an objectipfs object ls
- listing ... links from an objectipfs file ls
- listing directory contents for unixfs objectsipfs files ls
- listing directory contents for ...unixfs objectsApart from the fact that listing commands obviously needed to be sorted out (for which I created #3056), none of these commands actually exposes the data type of objects (whether they are a file, directory, metadata a symlink or plain data) while this data is in fact stored in the unixfs protobuf. Simply exposing this data (through the API and commands) would creating file-based applications a lot easier.
WIP for this one in https://github.com/dokterbob/go-ipfs/tree/lshelpdoc
The text was updated successfully, but these errors were encountered: