CFDIRECTORY - Count files in each directory
I want to count the number of files in each and every directory in my website. I don't want to list the files but just get a count of all files in each directory.
Not a sub directory count but a file count in each directory
For example using my C:\Windows\ directory as the directory where the files in each and every directory are to be counted
Like this
| Directory Name | File Count | Date Last File Modified |
|---|---|---|
| C:\Windows\ADFS\ar | 1 | 12-12-2016 |
| C:\Windows\ADFS\bg | 2 | 12-12-2016 |
| ................... | ||
| C:\Windows\WinSxS | 81 | 12-14-2016 |
| C:\Windows\WinSxS\x86_microsoft-windows-deviceaccess.resources_31bf3856ad364e35_6.3.9600.16384_en-us_21effc1389c6f3e1 | 1 | 12-14-2016 |
I need the count of the files in each directory. Every row in the table would be the next directory as you drill down.
