Is there anyway to include the file count of folders when using the tree command to display a directory?

So I am trying to write a directory and its sub-folders to a text file in the form of a tree like list, I was wondering if there is anyway to get the command to include file counts for each folder in the directory. Or if there is a command other than tree that I could use to accomplish the task of getting the directory and sub-directories listed with counts. Any advice is greatly appreciated. Thank you !

submitted by /u/tahp_master
[link] [comments]

Leave a Reply