lsd-rs / lsd-rs/lsd

Errors displaying system directories and files on C:\ on Windows

Open
#386 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug os/windows
Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

Expected behavior

pwsh> env ls -al C:\
total 8700157
drwxr-xr-x 1 thorsten Kein          0 Jun 20 23:47  .
drwxr-xr-x 1 thorsten Kein          0 Jun 20 23:47  ..
[...]
-rw-r--r-- 1 thorsten Kein 6811312128 Jun 21 09:54  hiberfil.sys
-rw-r--r-- 1 thorsten Kein 2080374784 Jun 20 08:45  pagefile.sys
-rw-r--r-- 1 thorsten Kein   16777216 Jun 20 08:45  swapfile.sys
drwxr-xr-x 1 thorsten Kein          0 Jun 20 08:28 'System Volume Information'
[...]

Native dir:

pwsh> cmd /c dir C:\
 Datenträger in Laufwerk C: ist System
 Volumeseriennummer: 2432-DCDA

 Verzeichnis von C:\

[...]
2020-06-20  08:28    <DIR>          System Volume Information
2020-06-21  09:54     6.811.312.128 hiberfil.sys
2020-06-20  08:45     2.080.374.784 pagefile.sys
2020-06-20  08:45        16.777.216 swapfile.sys
[...]

Actual behavior

pwsh> lsd --long --icon=never C:\
lsd: C:\hiberfil.sys: The process cannot access the file because it is being used by another process. (os error 32)
lsd: C:\pagefile.sys: The process cannot access the file because it is being used by another process. (os error 32)
lsd: C:\swapfile.sys: The process cannot access the file because it is being used by another process. (os error 32)
lsd: C:\System Volume Information: Access is denied. (os error 5)

I'm running the command as local admin and User Account Control is disabled.

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

The issue names no source file or test. Reproduce the Windows C:\ listing and compare lsd with native dir, then trace the directory-entry metadata handling that produces the reported errors. Done means the command displays these protected or in-use entries without the reported errors while preserving the expected listing information.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.