On Mon, Sep 28, 2020 at 18:55:51 -0500, Derek Martin wrote:
...
> On Unix systems, at least
> for most file systems, the size of a directory is the space occupied
> by the blocks needed to hold the internal representation of the
> listing of the directory...

Yes, the size on directories is essentially meaningless on POSIX systems (to
the user anyway).  Many file systems do what you say.  Others (e.g., ZFS)
make the returned directory size equal to the number of directory entries.
Note that this doesn't help with maildir either, since the mailbox directory
has exactly 5 entries: . .. cur new tmp

Just my 2 cents worth of trivia.

Jeff.

Attachment: signature.asc
Description: PGP signature

Reply via email to