-
-
Notifications
You must be signed in to change notification settings - Fork 961
Open
Labels
Milestone
Description
Currently, the --list-details option is implemented by calling ls -lhd (possibly with color).
This has a number of downsides, including poor performance, inability to work if ls is not installed (common on windows), etc.
I propose that instead of using an external tool we implement --list-details natively, probably using a similar flow to jsonl output.
Potential Challenges
- We would need code to format the permissions to a rwx string (for example with something like https://docs.rs/unix_mode/latest/unix_mode/fn.to_string.html)
- We would need something to print the file size in a human-readable way (https://docs.rs/humansize/latest/humansize/ ?)
- Is the format of
ls -lhdthe same on platforms with non-GNU ls? - What does the permissions field even look like for windows?