lsd-rs / lsd-rs/lsd

Supress "lsd: <file> Permission denied (os error 13)" messages when calculating file/dir sizes

Open
#781 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.