You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9192ea3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(filesystem): show an unstattable entry's size as unknown
list_directory_with_sizes substituted a size of 0 (and an epoch mtime,
never shown) for an entry it could not stat, so an unreadable entry, a
dangling symlink or a symlink leaving the allowed directories was listed
as an empty file and counted in the combined size. Show such an entry's
size as "unknown", sort it last by size, leave it out of the combined
size, and say how many files the total excludes.
Closes#5190
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
`list_directory_with_sizes` no longer reports an entry it could not stat (unreadable, a dangling symlink, removed mid-listing, or a symlink leaving the allowed directories) as `0 B`. Such an entry is shown with size `unknown`, sorts last by size, and is left out of the combined size, which notes how many files it excludes.
Copy file name to clipboardExpand all lines: src/filesystem/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ The server's directory access control follows this flow:
154
154
-`sortBy` (string, optional): Sort entries by "name" or "size" (default: "name")
155
155
- Returns detailed listing with file sizes and summary statistics
156
156
- Shows total files, directories, and combined size
157
+
- An entry that cannot be stat'd (unreadable, a dangling symlink, or a symlink leaving the allowed directories) is listed with size `unknown` and left out of the combined size
0 commit comments