How many files are there in a folder with subfolders ?

¿How do I count the files in a folder with subfolders?

Posted on Aug 16, 2014 12:58 PM

Reply
19 replies

Aug 16, 2014 2:32 PM in response to Bomiboll

Yes, that's correct. 679 visible files, the difference being hidden files and/or folders included in the count for a total of 1116.


TextWrangler is a more advanced, third party text editor. There's a free and paid version. All I used it for in my test was to copy/paste all of the non hidden file names EasyFind listed to confirm 401 lines of listed items.

Aug 16, 2014 1:36 PM in response to Bomiboll

Niel's advice is hardly complicated, but try this one.


1. Download the free EasyFind.


2. Open the app and set the options as shown here:


User uploaded file


3. At the right of the interface, choose which drive you want to count all files of.


4. In the search field, enter a single asterisk * and press Enter.


It will list only visible files in all folders and subfolders. I did this to a drive that didn't have a whole lot on it. This count at the top of the list of items was:


User uploaded file


I copy/pasted the output into TextWrangler to see how many lines there were. 401 was the correct number of visible files. The value 441 was the total number of files on the drive including hidden items and folders.

Aug 16, 2014 2:47 PM in response to Bomiboll

The instructions I gave above counts all files on an entire drive. If you want to limit the count to a particular folder and its subfolders, click on the same menu for selecting a drive and select the first option; conveniently named "Select". A Finder window will open. Navigate to the folder you want and click Select. Using the same settings at the left side of the interface, press Enter again to get a new list. You will get a count of items only in that folder and its subfolders.

Aug 16, 2014 4:45 PM in response to Bomiboll

The EasyFind window is live. Click anywhere in the list and press Command+A to select all. Drag and drop the contents out of the EasyFind interface into the folder where you want them. When you press Enter in EasyFind again so it can update itself, it will list all of the same files in their new location.


Does of course depend on where the files currently are and where they're going. On the same drive/partition, they'll move to the new folder. Different drive/partition, they'll copy. Haven't tested to see if you can hold down the Command key while dragging out of EasyFind to force a move rather than copy.


There is no need to put the files you're relocating in the trash first. Move them directly to the destination folder.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How many files are there in a folder with subfolders ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.