← Mac Change Notes

Why ls Shows a Tiny Mac Folder Size

Use Finder → Get Info or du -sk to inspect a Mac folder's contents. ls -ld shows the directory itself; its small size is not a total of the files inside.

In this article

A folder containing gigabytes can therefore have a surprisingly small number in an ls listing. Adding -h changes how that number is formatted. It does not make ls walk through the folder and calculate a recursive total.

Ask for the folder tree when you need disk usage

For a visual check, select the exact folder in Finder and press Command-I. Let any size calculation finish. For a Terminal observation, supply that same folder directly:

/usr/bin/du -sk "/path/to/folder"

Replace the placeholder with your actual path and keep quotes around paths containing spaces. On macOS, -s asks for a summary and -k reports filesystem usage in 1,024-byte units. The number is not already a count of individual bytes.

Apple's published du manual source describes its traversal of the hierarchy rooted at a directory argument. The local man du documents the version installed on your own Mac.

CommandQuestion it helps answerScope
ls -ld "folder"What are this directory's own attributes?The directory object
ls -l "folder"What entries are listed immediately inside it?A listing, not a recursive usage calculation
du -sk "folder"What filesystem usage is reported for this tree?The accessible hierarchy below the supplied folder

For inspection, these commands do not remove files or change their permissions. If du reports an access error, retain it with the result: an incomplete walk should not be presented as a complete measurement.

The directory row does not contain its children's sizes

The -d option is useful because it asks ls to display a directory as an entry instead of listing its contents. Apple documents that distinction in the ls manual source.

In a long listing, a row beginning with d is a directory. The size field belongs to that row's object. The files named inside the directory have their own attributes and data. A recursive total requires inspecting those children, including children of subfolders.

Think of a library catalogue and the books it identifies. The catalogue has a size of its own. Making one book longer does not mean its catalogue entry needs to grow by the same number of pages. This analogy explains the separation; the actual representation and reported size depend on the filesystem.

Do not assume that a familiar number such as 64, 96, or 4,096 is a universal folder-size constant. Nor does a small number alone prove the folder is empty. Check the entries, including hidden ones, when emptiness is the question.

We grew a file without growing the directory number

On December 1, 2026, we created a disposable folder on an APFS volume running macOS 15.7.5. We recorded the directory's size using both /bin/ls -ld and /usr/bin/stat -f %z, then separately ran /usr/bin/du -sk on the tree.

We first wrote a 4 KiB file. Next, we appended random bytes to that same file until its length was 3 MiB. Finally, we added a second, empty file. We did not make a sparse file or copy an APFS clone to produce this comparison.

StageDirectory size from ls and statPayload file lengthdu -sk result
Empty folder64 bytesNo payload yet0 KiB
One 4 KiB file96 bytes4,096 bytes4 KiB
Same file grown to 3 MiB96 bytes3,145,728 bytes3,072 KiB
Add a second, empty file128 bytesStill 3,145,728 bytesStill 3,072 KiB

The middle two rows are the decisive comparison. The path and number of entries stayed the same while the payload grew substantially. The directory's reported size stayed at 96 bytes, but du reflected the larger file below it.

Adding an empty entry then changed the directory number without increasing the reported tree usage in this test. These are measurements of this fixture and filesystem, not a rule that every new filename adds exactly 32 bytes on every Mac.

The empty folder's zero du result also does not mean directories require no filesystem bookkeeping. It is the usage reported by that tool for this fixture. Avoid turning any one column into a complete model of physical storage.

Different totals still need a matching definition

After switching to du, a smaller difference from another tool may remain. Compare the same path, the same time, and the same units. File length, allocated usage, and a volume's free space are distinct measurements.

This is especially relevant for applications. A .app is a bundle with contents; its directory row is not a useful total for all bundled resources. Show Package Contents explains that structure. Even a recursive bundle total does not include every document, cache, or download the application may store elsewhere.

For a broader comparison, see app sizes in Finder and Storage. That guide separates scope and allocation issues. Here, the first correction is simpler: use a tree measurement when you were accidentally reading one directory object's attribute.

Supply the folder to du directly rather than expanding it into a list of names with *. Shell expansion can leave hidden entries out before du starts; why du misses hidden files covers that separate trap.

Keep the observation useful

Before acting on a large or small number:

  1. Copy the exact path so duplicate folder names do not confuse the comparison.
  2. Decide whether you need directory attributes, the tree's usage, or one file's length.
  3. Record the command and units, including any access errors.
  4. Recheck after active writes finish if the content is changing.
  5. Identify what the files contain before considering removal.

The practical outcome is an explained measurement. A tiny ls directory row can coexist with large files underneath it, and neither observation establishes that those files are unnecessary or safe to delete.