foldercount(
PATH
)

The foldercount( function returns the total number of files within a folder (including any subfolders).


Parameters

This function has one parameter:

path – the path to the folder.


Description

This function returns the total number of files within a folder (including any subfolders).

foldercount("~/Pictures") ☞ 3716

Note: This function can be slow if there are a lot of files in the specified folder.

Important: The foldercount( function counts all of the files in the folder, including hidden files. This means that the count returned by this function may be different than the number of files reported by the Finder.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0