Supress "lsd: <file> Permission denied (os error 13)" messages when calculating file/dir sizes
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
I didn't have this "os error 13' until I turned on calculating file sizes always. I (maybe) understand that the error is just the user running lsd not having access to the file it's trying to get the size of (and maybe some other properties) when trying to create the listing. It would be great to be able to (optionally) suppress these messages for a cleaner output, despite it being somewhat inaccurate.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how lsd calculates file and directory sizes and reports permission errors when size calculation is enabled. Inspect the existing option handling, then verify that an option can suppress these messages while preserving the current output by default, including a permission-denied case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100