Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Fastest way to count # of files?



On Sep 9,  5:36am, Daniel Shahaf wrote:
}
} nlink for a directory $d is usually the two plus number of subdirectories

Yes, this is definitely true on traditional filesystems (which I admit
I'd forgotten) and Linux ext*, but some testing on MacOS for example
(which is the only thing I tried before posting) shows counts in nlink
that include all the files, not just the subdirectories.



Messages sorted by: Reverse Date, Date, Thread, Author