Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Count all files and subfolder files within a folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Count all files and subfolder files within a folder
Authored by: Anonymous on Nov 09, '04 11:37:00AM

To count al files, subfolder files and subfolders themselves you just have to open the cointaining folder in a new window in list view and open all levels clicking on the arrows. The total of files subfolder files and subfolders is displayed on the bottom bar of the window.

If there is a lot of branching sub folders CMD-ALT-Click on the arrows expands all levels of the structure (expect low refresh rates for large amounts of files).

You can do this from a folder that contains the actual folder which contents you want to count, but remember that the bottom counter registers all items in the window including the target folder and any other items present.


---
Its impossible to create a foolproof device because fools are very ingenious people.



[ Reply to This | # ]
Count all files and subfolder files within a folder
Authored by: Trunkmonkey on Nov 09, '04 04:50:51PM

How about:

dyn-012:~/Movies sean$ find . | wc -l
98
dyn-012:~/Movies sean$

Just files:

dyn-012:~/Movies sean$ find . -type f | wc -l
94
dyn-012:~/Movies sean$

Just directories:

dyn-012:~/Movies sean$ find . -type d | wc -l
4
dyn-012:~/Movies sean$



[ Reply to This | # ]
Count all files and subfolder files within a folder
Authored by: joshewah on Nov 09, '04 05:03:24PM

was about to post this, guess im too slow!



[ Reply to This | # ]