Skip to content

Show the files directly inside a folder in the inspector - #24

Merged
phalladar merged 2 commits into
phalladar:mainfrom
horus-leonardo:feat/files-directly-inside
Nov 25, 2026
Merged

phalladar merged 2 commits into
phalladar:mainfrom
horus-leonardo:feat/files-directly-inside

Conversation

@horus-leonardo

@horus-leonardo horus-leonardo commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

My Downloads folder showed 11.5 GB in the sidebar, but its subfolders added up to a fraction of that. Most of the space was in files sitting directly in Downloads, which have no sidebar row, and nothing in the app said how much they took. I had to sum the subfolders in my head to find out.

Change

The inspector now shows the count and size of the files directly inside the selected folder, in the current size metric, below the recursive file count:

Files                  1,437
Files directly inside  48 · 2.1 GB
Directories            212

It filters the selected folder's children on each selection; no new stored state.

I first tried a <Files> row in the sidebar, sorted among the subfolders as WinDirStat does, but in chains of folders that each hold one small file it piles up a staircase of rows away from their folders. The inspector line avoids that with no special cases. If you'd still like the WinDirStat-style row, I have it ready and can open it as a separate PR.

Tested on macOS 27 (local SDK 15 build), swift build and swift test.

🤖 Generated with Claude Code

horus-leonardo and others added 2 commits November 24, 2026 13:20
A folder's total includes the files sitting directly in it, which have no
row in the sidebar, so a folder can look much larger than its subfolders
add up to. The inspector now shows their count and size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@phalladar phalladar left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! It's a small change that answers a question the app couldn't answer before, and I agree with putting it in the inspector instead of adding a <Files> row. The staircase of rows you described sounds like the right reason to skip that.

Looks good to merge. Two tiny optional thoughts, neither blocking:

  • For a folder with no files of its own, the row reads "0 · Zero KB". It might be worth hiding it in that case.
  • The size follows the toolbar's metric, while the File Size and Allocated rows above it show both. That's fine as is; I'm only mentioning it in case you'd rather match one of them.

I also merged this together with #25 locally, and the two combine cleanly. Thanks again!

@phalladar
phalladar merged commit b76d026 into phalladar:main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants