duscape is seven packages. Two are libraries every viewer shares, one is what the desktop viewers share, and four are viewers.
common/ libduscape what a viewer shows and does, with no user interface
scanners/ duscape-scan reading the disk: one walker per platform, and what drives them
viewers/tui/ duscape the terminal viewer (ratatui) — the primary one
viewers/windows/ duscape-windows a native Windows window (Win32 and GDI)
viewers/macos/ duscape-mac a native macOS window (AppKit, through objc2)
viewers/linux/ duscape-linux a Wayland or X11 window for Linux (FreeBSD untried), no toolkit (wayland-client, x11rb, ab_glyph)
viewers/shared/ duscape-viewer what the desktop viewers share: the window's state and layout,
the first scan with its live outline, the preview reader
viewers/dos/ (FASM, not Cargo) the treemap for MS-DOS in 16-bit assembly, ported from the
Rust code rather than built from it
Dependencies run one way: duscape-scan depends on libduscape, each viewer on both, and the
desktop viewers (Windows, macOS, Linux) on duscape-viewer as well, which holds everything about the window
that is not drawing or input (it depends on duscape-scan for rescans, so it cannot live in
common).
Nothing in common or scanners knows about a terminal or a window. A feature that is not about
drawing or input belongs in one of them, so that a second viewer gets it by calling it rather than
by copying it.
| Module | What it gives a viewer |
|---|---|
model |
FileTree: the scanned folders and files, both sizes of each (on disk, and apparent length), navigation (enter, leave, current folder), deletion that corrects every ancestor, a folder rescanned and grafted back in (graft), and the second pass's findings folded in (apply_found). Sizes count each set of shared blocks once — hard links and reflinks — so a folder can be smaller than the sum of its entries. |
tiles |
The squarified treemap (TreeMap) and Board: tiles for the current folder, the selection and moving it by direction, zoom, and listing — the folder's entries largest first, the same targets as the tiles, for a list beside them. Entries too small for a tile are folded into one "small files" marker, never dropped. |
scan |
The protocol between a walker and the model: ScanOptions (apparent size, one filesystem, depth, threads, hard-link tracking), EntryMeta and DirEntries (one directory's entries as read), Outline and DirSummary (the folder-only live view shown while a scan runs), and Found (what the second pass found). |
delete |
remove: a file, or a folder and everything in it, from disk — a link itself, never its target; remove_counting, the same counting each entry into a Tally that a window shows and can stop. Directory traversal resists concurrent symlink replacement (open directory handles on Unix, locked ancestors on Windows). refused, the sentence saying why: NTFS's own metadata files, which a whole-volume scan shows and no viewer may delete, and what is in a volume's local snapshots. |
preview |
read: what a file is from its first 64 KiB — empty, text (its first lines, made safe to draw), a picture (PNG, JPEG, WebP, GIF, BMP, ICO, TIFF, QOI, HDR, PNM, DDS), or binary, for which describe_binary gives its size and, on Linux and Windows, where its blocks are: placement::describe — extents, sparseness, shared blocks, and the physical disk (model, SSD or HDD) and offset, through a partition; the members of an LVM or md volume; a loop device's file. On Windows the runs come from FSCTL_GET_RETRIEVAL_POINTERS (a file resident in its MFT record has none), the disk and offset from the volume's disk extents, its model and bus from IOCTL_STORAGE_QUERY_PROPERTY, none of it needing elevation; a compressed file says so, and a volume over several disks names them. describe_picture from the header alone, decode_picture within limits (40,000 pixels a side, 1 GiB), and fit, which scales down and never up. Reader: the preview thread — the latest request only, a picture decoded once the selection has rested on it 100 ms, prepared by whatever the viewer passes it. Only regular files are read, and on macOS never one that is only in iCloud. |
archive |
Zip archives, and the formats that are zips by another name (.jar, .apk, .whl, .nupkg, .vsix…; EXTENSIONS): read_index, the entries from the central directory at the file's end (Zip64 too, a self-extractor's stub before it, CP437 or UTF-8 names), each with its compressed and unpacked size; member_of, the archive and the inner path of a path inside one; read_member, an entry's first bytes unpacked in memory; read_member_whole, an entry unpacked whole within size limits (stored or deflated). FileTree::expand_archive makes an archive a folder of its entries, sized by their compressed lengths; preview reads an entry as it reads a file; delete refuses one. Malformed indexes and zip bombs are rejected; listings capped at the entry limit show a persistent partial-listing notice in the viewers (see docs/security.md). |
launch |
open: a file with its default app; reveal: entries in the file manager, selected — open/open -R on macOS, ShellExecuteW and explorer.exe /select on Windows, xdg-open and org.freedesktop.FileManager1 elsewhere. Neither makes the window wait. |
clipboard |
copy: text on the native clipboard — pbcopy, Win32, wl-copy/xclip/xsel — saying whether it worked, so a viewer with another way (a terminal's OSC 52) can fall back. |
format |
Sizes (DisplaySize: B to TB), counts, truncating names to a width, quoting a path for the shell the user is in (quote_path_for_shell), and copied_path: a path as a viewer copies it — relative to the working directory or absolute, ./ before a leading -, quoted. |
snapshots |
A volume's local snapshots as one folder at its root, (local snapshots) (FOLDER), with a folder per snapshot: what is noted of them (Noted), what the folder and a Time Machine snapshot are for a status line (describe, which nas::describe asks), and whether a mount is a snapshot's (is_snapshot_source). The folder is no path on disk, so delete::refused refuses what is in it and a rescan is never started there. |
metafiles |
NTFS's metadata file names ($MFT, $LogFile, $Extend…), for the walker that sizes them and for delete, which refuses them. |
os |
The platform's answers: whether the user is an administrator, a volume's used space (so a whole-volume scan can say how much it could not see), link counts and on-disk sizes; volumes, what is mounted and how full (/proc/self/mounts and statvfs, getmntinfo, the drive letters), for a window opened with no folder. |
| Module | What it does |
|---|---|
ext4 |
As root on ext4, the scan read from the block device instead of asked of the kernel: directory blocks and inodes swept in device order a generation at a time, every run advised before any is read; a mount point inside, or a directory of a shape it does not read, goes to the kernel walker; a filesystem it cannot follow makes it decline up front. --no-device-read opts out; rescans never use it. Cold it is 1.7x the kernel walk, 2.2x an unprivileged scan. |
linux |
getdents64 and statx on its own thread pool. Probes shared extents (FIEMAP) for reflinks from 64 KiB up — except under a folder whose snapshots are left out, where every extent is shared with them and the probe was most of the walk on a NAS — reads btrfs compressed sizes when root, and refuses pseudo filesystems (/proc, /sys…), network filesystems (NFS, SMB, sshfs…) and bind-mount duplicates at their mount points, and leaves read-only btrfs snapshots empty unless --snapshots. On a kernel without statx (before 4.11) it sizes entries with fstatat, and before 5.8 it takes mount points from /proc/self/mountinfo. |
macos |
getattrlistbulk(2), choosing the size attribute per device because FAT misreports it. APFS clones counted once (by clone id, as reflinks are on Linux; a clone written to since counted in full); a disk image's volume mounted inside the scan, from an image the scan counts as a file, left empty and noted (the iOS simulator's runtime, 21.6 GiB counted twice before); a volume's snapshot mounted inside the scan (<snapshot>@/dev/…: Time Machine's, browsed, or the snapshots' pass's own) left empty and noted unless --snapshots. A Linux filesystem (ext4, btrfs, XFS) on a macOS machine — a USB drive — is walked like any other folder through whatever driver mounted it, with none of the linux module's knowledge: no btrfs snapshots left out, no compressed sizes, no reflinks, no reading the device. That is by choice: the Linux filesystem code is not in the macOS build. Named as the scan's root (duscape /Volumes/USB) such a drive is scanned whatever the driver; reached from above it, a mount macOS does not mark MNT_LOCAL is left out as a network share, which a FUSE mount (macFUSE by default, fuse-t) may be. Untested on a Mac. |
windows |
One handle per directory, entries in bulk (FileIdExtdDirectoryInfo). Hard links deduplicated by file id where they are made (or everywhere, elevated). Elevated, NTFS's metadata files are sized from their MFT records (ntfs) and shown at the volume's root. |
cache |
macOS: the finished scan saved (~/Library/Caches/duscape, deflated, the owner's alone, 10–30 MB a terabyte, more where there are many APFS clones: folders, hard-linked files, clones and files of a megabyte and up kept one by one, each folder's smaller files as one sum) with the volume's FSEvents id from before the walk began. The next scan of the same folder shows it as it was within milliseconds, sizes right, then brings it up to date behind that — the change log replayed, the folders it names listed again (a folder gone dropped with what was under it, a folder new walked, a subtree the log lost events under walked whole), a hard-linked file's size and link count taken from wherever it was listed afresh, the new tree swapped in as a rescan of everything is — and then fills in the smaller files, the folder in view first. The log reset, wrapped, the system updated, or more than a quarter of the folders named, and the walk runs afresh; either way the result is saved for next time. After every save the directory is swept: a recording cut short, an older format, a file saved under another system version or before its volume's change log was reset are removed, and the rest kept within 256 MiB, the least recently saved out first (not by age, nor because the folder is gone: an archive or unplugged disk is where a saved scan pays most). --clear-cache removes them all. --no-cache walks and saves nothing; rescans, --issues and the benchmark (its cached and saved stages excepted) never use it. The status line says "the saved scan, being brought up to date", then "filling in the smaller files". The format, the merge and the fill run and are tested everywhere; only the log is macOS (fsevents). |
mft |
Elevated, a whole NTFS volume read from its master file table instead of walked: the $MFT in a few large sequential reads, parsed on several threads into every record's names, parent and sizes, the tree handed on as the walk would hand it. Used only where a sample of the table says the volume's directories are small enough for it to pay; --no-device-read walks instead. The parsing runs and is tested everywhere. |
snapshots |
macOS: a volume's local snapshots listed with when each was made (fs_snapshot_list, unprivileged) and, as root, read for what each alone keeps — mounted read-only and out of the Finder's sight (mount_apfs -s on the volume's device), read where the change log (fsevents::events, streamed on /, taken onto the volume through the firmlinks; log) names folders since it (whole where the log does not reach back), its files set against the live volume by file id through volfs (/.vol/<device>/<id>): files gone, and the old blocks of files written over in place (extents, F_LOG2PHYS_EXT), and unmounted. One tree for them all, so a file several keep is counted once above them; grafted at the volume root's (local snapshots) folder. How each was read is in sudo duscape --issues. The walk, the log's rules and the extents' arithmetic run and are tested everywhere; the mount and the root path have not been run (2026-10-05). |
portable |
the portable walk on std::fs, on every other platform — the BSDs included: there is no native BSD walker. |
scan_directories |
Picks the walker. Every walker yields the same thing: one DirEntries per directory. |
parallel |
build_tree: the tree built on several threads as the walk runs, with an optional callback per directory for a live view. |
archives |
The archives' pass: the archives the scan noted (FileTree::archives), each read for its index on a few threads once a viewer says it is on screen (Rescans::want_archives), largest on screen first, and reported in batches as Outcome::Archives through the rescan channel, which Rescans::finish grafts as folders. An archive no viewer asks for is never read. |
refine |
The second pass: small files the walk left for later, probed after the tree is on screen, the folder in view first. It finds nothing to do off Linux. |
rescan |
Rescanner: a folder (or everything) scanned again on a thread of its own, the old figures kept on screen until it is done. Rescans: the ones under way — one another covers is not started, one the new one covers is stopped, a delete inside one restarts it — and finish, which grafts the result into the tree; start_idle, the last of the passes, once nothing else reads the disk: a saved scan's fill, then the volume's local snapshots. Refiner: the second pass, run the same way. |
terminal (duscape) |
Windows (duscape-windows) |
macOS (duscape-mac) |
Linux (duscape-linux) |
|
|---|---|---|---|---|
| One program with the terminal viewer | — | yes (duscape.exe: the window from Explorer — with no console from Windows 11 24H2, a console flashing first before it; --gui) |
yes (duscape, and Duscape.app for Finder; --gui) |
yes (duscape: the window from a launcher; --gui) |
| Scan with the native walker | yes (Linux, macOS, Windows; the portable walk on the BSDs) | yes | yes | yes |
| Started with no folder | scans the current one | the volumes to choose from, each with how full it is (a mapped network drive by its share and protocol, cifs), then the home folder and a folder dialog; a whole local volume asks to run as administrator as one on the command line does |
the same, in the window (File ▸ Scan Folder… and a drop still work) | the volumes and the home folder (no dialog); ↑/↓, Enter, a click |
A share's snapshots over the network (Synology's #snapshot, QNAP's @Recently-Snapshot, ZFS's .zfs, NetApp's .snapshot) |
left empty by name (listed, not entered), and on Linux nothing under the folder listing them is probed for shared extents (a reflink pair there counts twice; --issues says not probed); --snapshots walks them, probing again, and a volume root then says how much more was counted than the volume holds (shared or compressed blocks, counted in full), since sharing cannot be seen over the network. A NAS's other folders (its recycle bins, @docker, @eaDir, .@__thumb…) are walked, the status line saying what each is |
the same | the same | the same |
| A volume's local snapshots (macOS) | at a volume's root, a (local snapshots) folder with one per snapshot, once every other pass is done: named unprivileged (the status line says they are read as root), and as root filled with what each alone keeps — files gone from the disk, and old blocks of files written over in place ("reading the local snapshots"); nothing in it can be deleted or rescanned; --issues says how each was read |
— | the same as the terminal, and unprivileged the unseen space split: "Snapshots and purgeable, at most" (what the system says it could free) beside the free space, "Not seen by the scan" the rest | — |
| A folder entered during the scan | read next, before the rest of the disk; its folders and files shown as they are read, and "Scanning this folder…" until then | the same; "Scanning…" | the same | the same |
| Scan something else | — | the button at the path bar's left opens the same chooser over the scan, with a Cancel row (or Esc) back to it | the same | the same |
| App icon | — | a treemap drawn by the app, on the window, the taskbar and the .exe file in Explorer (duscape.exe and duscape-windows.exe) |
a treemap drawn by the app, in the Dock while it runs, and on Duscape.app in Finder (duscape.icns) |
a treemap drawn by the app, on X11 (_NET_WM_ICON); on Wayland through its .desktop file (packaging/linux, in the tarball's share/) |
| Live treemap while scanning | yes (Outline) |
yes (Outline), at the frame rate (a batch a frame) |
yes (Outline), a batch a frame |
yes (Outline), a batch a frame |
| The volume's free space, at its root | — | yes: a dark "Free space" tile of its share of the volume, a band the treemap's width along its bottom, its place, width and height fixed through the scan, and above it at the right an "Unscanned" tile of the used space the scan has not found yet, which the entries grow into as it goes ("Not seen by the scan" once it is over), so the treemap shows the whole volume in proportion; on by default, with a toggle at the path bar's right while the root of a volume is shown; no entry — not listed, not a target, never in hand (Board::set_free_space, Viewer::toggle_free_space) |
yes, the same | yes, the same |
| Treemap | yes, in cells, nested: a folder's tile is a box headed by its name and size holding its entries' tiles as a block of their own inside its border, and theirs in turn, while there is room for two 8×3 tiles either way; each folder's "small files" corner drawn as the board's; a tile in hand or marked is highlighted as its row in the list is (a bar, white on blue for a folder and black on gray for a file, where the treemap has the keyboard; white and underlined where the list has it; black on yellow marked), its border in the same colours, filled where nothing is drawn inside it — a file or a small folder whole, a folder holding its entries in its header row only, so they stay readable; the "small files" corner a box of ▫s; a click or the cursor still picks a top-level tile |
yes, GDI, nested: a folder's tile holds its entries' tiles, and theirs in turn, down to the files wherever there is room — laid out in the screen's pixels, so an entry gets a tile once it is 4 pixels either way, and a folder too short for its label still shows what is in it; the "small files" corners — the treemap's and each folder's — are filled with a speck for each entry in them, down to a pixel; a file's size sits at its tile's bottom right; clicking a nested tile opens the tree to it, Ctrl+click marks its folder | yes, AppKit, nested as on Windows, the same labels | yes, software-drawn (native Wayland or X11), nested as on Windows, the same labels |
| List of entries beside it | yes | yes, as a tree: folders open in place (→ / ←, or the expander), their entries indented under them with each one's share of its parent — WizTree's tree view; the entry's details under it (s hides) |
yes, as the same tree (→ / ←, or the expander), with the entry's details under it (⌃⌘S hides) | yes, as the same tree (→ / ←, or the expander), with the entry's details under it (s hides) |
| Move by arrow keys, select by click | yes | yes, and PgUp / PgDn / Home / End; hovering names the entry in the status bar, and a tile rested on for 100 ms is shown in the details panel until 100 ms after the pointer leaves | yes; hovering names an entry in the status bar, and the details panel follows a tile rested on | yes; hovering names an entry in the status bar, and the details panel follows a tile rested on |
| Enter a folder, go up | Enter or double-click / Esc | Enter or double-click / Esc, Backspace, a breadcrumb or the mouse's back button | Return, ⌘↓ or double-click / Esc, ⌫, ⌘↑, a breadcrumb or the mouse's back button | Enter or double-click / Esc, Backspace, a breadcrumb or the mouse's back button |
Zip archives (.zip, .jar, .apk, .whl, .nupkg…) as folders |
yes: read once its tile is at least 18×9 cells or its row is in the list, then nested and listed as a folder's; an entry previewed from inside it | yes: read once its tile is at least 12 pixels either way or its row is shown, largest first, then nested and listed as a folder's; an entry previewed from inside it (text, picture, hex dump) | the same as Windows; Quick Look and the Finder act on the archive | the same as Windows |
| Delete | yes, one or every marked entry | yes (Del or d), one or every marked entry; on a thread, a box with the count and Cancel (Esc) after 100 ms |
to the Trash (⌘⌫) or immediately (⌥⌘⌫), every marked entry; the same box | to the Trash (d, Delete) or immediately (D, Shift+Delete), every marked entry; the same box |
| Refuse NTFS metadata | yes | yes | yes | yes |
| Run as administrator | from an elevated terminal | asks (the UAC prompt) when the folder is a whole volume, and starts itself again elevated; --no-elevate scans as it is |
run as root | run as root |
| Mark several entries | yes (Shift+arrows, Ctrl+click, Shift+click where the terminal reports it) | yes (Shift+arrows or Shift+click, Ctrl+click, Ctrl+A; a quick second Ctrl- or Shift-click marks, never opens) | yes (⇧ arrows or ⇧-click, ⌘-click, ⌘A) | yes (Shift+arrows or Shift+click, Ctrl+click, Ctrl+A) |
| Copy a path, shell-quoted | yes (right-click; double for absolute) | yes (Ctrl+C; Ctrl+Shift+C absolute; marking copies; the context menu) | yes (⌘C; ⌥⌘C plain, like Finder) | yes (Ctrl+C; Ctrl+Shift+C absolute; the context menu); the window holds the selection itself when no clipboard tool is installed |
| Preview text and pictures | yes (kitty graphics, sixels or half blocks) | yes, under the list (a bitmap, full colour); a binary file as a hex dump under its description (where its blocks are), sixteen bytes a line with the characters beside, the font shrunk to fit | yes, in the side panel (any format macOS decodes), and Quick Look (Space); a binary file as a hex dump under its description, the font shrunk to fit | yes, in the side panel (PNG, JPEG, WebP, GIF, BMP, TIFF and more); a binary file as a hex dump under its description (where its blocks are), the font shrunk to fit |
| Show in the file manager, open with the default app | — | yes (the context menu: Explorer) | yes (⌥⌘R, ⌘↓ on a file, the context menu) | yes (the context menu: FileManager1, else the folder by xdg-open) |
| Context menu | — | yes (right-click) | yes (right-click or Control-click) | yes (right-click; drawn by the window, ↑↓ Enter Esc) |
| Scan a folder dropped on the window | — | — | yes | — |
| Zoom | yes | yes (+ / - / 0, the wheel over the treemap) |
yes (⌘+ / ⌘- / ⌘0, a pinch or a mouse's wheel over the treemap) | yes (+ / - / 0, the wheel over the treemap) |
| Disk usage / apparent size toggle | yes | yes (a) |
yes (a, View menu) |
yes (a) |
| Rescan a folder / everything | yes (r / R) |
yes (r / R, F5 / Shift+F5) |
yes (⌘R / ⇧⌘R, or r / R) |
yes (r / R, F5) |
| Second pass for small shared files | yes (Linux) | not needed (Windows) | not needed (macOS) | not yet (the tree is the walk's) |
| Volume used vs. what the scan found | yes, in the title | yes, under the path, with freed space and unreadable entries | yes, in the status bar | yes, in the status bar |
| Configurable keys | yes (config.toml) |
— | — | — |
| Benchmark harness | yes (--benchmark) |
— | — | — |
| About (version, copyrights, licence, links) | --licenses (with the licences), --version |
the window menu (Alt+Space, the title bar's icon): About duscape… | the app menu: About duscape (the copyright from Info.plist, links from Credits.html) |
the right-click menu (the whole menu when nothing is in hand), and F1 |
| The licences in full: duscape's and every third party's | --licenses |
the window menu: Licences…, opened in the default text viewer | the app menu: Licences…, in TextEdit | the right-click menu: Licences…, by xdg-open |
The MS-DOS viewer (viewers/dos/, 16-bit assembly for a 286 with no coprocessor) shares no
code, so it is not in the table. It has the scan (DOS
find calls, long names where there are), the live treemap, arrow-key and mouse selection, Enter/Esc,
deleting one entry, zoom, the disk usage / apparent size toggle, rescans (r / R), the list
beside the treemap, and previews of text, PNG and JPEG in half blocks; see its README.
A gap in a GUI column is a missing viewer feature, not a missing library one: everything in it
apart from drawing and input is already in the two libraries.
The Windows, macOS and Linux columns agree wherever the shared state decides: the same keys move
the same entry, and a change to duscape-viewer reaches all three.
The context menu is the same in all three: duscape_viewer::menu decides its items, their
order and words, and which can be chosen — Open (a folder goes in, a file opens with its default
app; not with several marked), Show in the file manager (Quick Look beside it on macOS), Copy
Path (relative to the folder the window was started in, when it was started in one) and Copy
Full Path (Copy as Pathname beside them on macOS), Rescan Folder (or the enclosing folder, for a
file) and Rescan Everything, then Move to Trash and Delete Immediately (Windows, with no Recycle
Bin yet, has Delete only). The counts follow the marks: Copy 3 Paths, Delete 3 Items. Each window
draws it, shows its own keys beside the items, and carries out the one chosen.
The rules behind these are the terminal viewer's, kept once in viewers/shared/src/state.rs (no
toolkit in it, tested on every platform) on the shared pieces Rescans, copied_path,
preview::Reader and delete: a plain move, jump, click or folder change clears the marks;
Ctrl+click (⌘-click) takes in the entry already in hand only if the user picked it, never one
the viewer placed, so nothing unchosen is ever deleted; a Shift run adds its range to the marks
it started from and shrinks when reversed; a rescan another one covers is not started, and a
delete inside a folder being rescanned restarts it.
What the Windows viewer still lacks is configurable keys: the terminal viewer's config.toml
names terminal keys, and nothing yet maps it to a window's.
Anything about the screen or the input: layout, colours, fonts, key bindings, how a picture is encoded for display (kitty graphics, sixels and half blocks are the terminal's own; the terminal also detects which it has), the terminal's OSC 52 clipboard fallback, and when to decode a picture (the terminal waits until the selection has rested on it for 100 ms).
The Linux Trash fallback reserves metadata exclusively and moves files without overwriting
an existing trash entry. Its directories must belong to the current user, have mode 0700,
and not be symlinks. If an exclusive rename is unavailable, the source is left intact;
on FreeBSD the fallback requires gio instead.
Deletion regression measurement (2026-10-06, macOS, release build, temporary on-disk tree of
20 folders with 1,000 files each): handle-relative counting deletion took 927 ms versus
919 ms for std::fs::remove_dir_all in one run. Reproduce with
cargo test --release -p libduscape deletion_speed_on_disk -- --ignored --nocapture.
The Windows locking path still needs a native performance measurement.
The review covered recursive deletion, trash collisions, ZIP record bounds, and propagation of partial listings through the archive pass. Regression tests replace a queued directory with a symlink, delete a bare relative directory, race two same-name trash operations, and exercise dangling metadata links and unsafe trash directories. ZIP tests reject broken signatures, truncated fields, missing Zip64 sizes and inconsistent entry counts. A duplicate archive result must not clear an existing partial notice; a deletion or replacement tree clears notices for the entries it removed.
Unix deletion keeps directory descriptors while descending and uses no-follow opens and handle-relative unlinks. Its descriptor cost grows with nesting depth; an exhausted descriptor limit returns an error, leaving the rest for a later attempt. Windows holds path ancestors without write/delete sharing and rejects reparse-point ancestors; a sharing conflict or a path through a junction can therefore refuse deletion instead of traversing an unsafe path. This is protection against replacement during traversal, not an atomic snapshot of a changing filesystem. The existing Windows timing above the implementation predates these locks.
Validation: the macOS workspace suite, native Clippy, Windows and Linux GNU cross-target Clippy, formatting, spelling and cargo-deny checks passed. The dependency check reports existing duplicate-version warnings. Linux ARM64 musl binaries additionally passed the deletion, archive and trash regression tests in an isolated container. Native Windows runtime tests, the full filesystem fixture matrix, and 32-bit/big-endian parser tests remain unrun here.