ipfs ls
should behave like ls
when called on individual files.
#4186
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
Version information:
Type:
Bug?
Severity:
Very Low
Description:
In the past,
ipfs ls /ipfs/Qm.../file.txt
listed the internal blocks in the file. Now, it just prints an error. In the near future, it looks like it will go back to listing internal blocks (restoring the original behavior).Really, it should behave like the standard unix
ls
command and print the filename (if available in this context) and, in the future when we support them, any unix permissions on the file. Basically, internally, we should be listing the parent directory and then filtering out all files except the target file.The tricky part is what to do when we don't know the parent directory (when the file is named by hash). I'd be inclined to print the file hash as the file name and set the permissions to 0777.
The text was updated successfully, but these errors were encountered: