Fun directories and file types

LilBudyWizer

Warlord
Joined
Nov 11, 2014
Messages
167
Once again json files. Json because it's nested trees. You can bring it into Notepad++ and collapse the trees. This time it's directories and file extensions. There's two files. One is byDir and the other is byExt. byDir is good for finding what types of files are in a directory. It's basically a directory tree with stats at each level giving information on that directory tree. That includes basic information like the number of files and directories. It also includes a list of all extensions found in that directory tree along with the number of files of that type and the total size of those files. The basic stats has a thisDirs and dirs. thisDirs is the directories in that directory while dirs is the number of directories in the directory tree.

byExt is good for finding where files of a particular type are located. The highest level is the extension. Beneath that is just the directory tree for that particular extension. If a path doesn't lead to a file of that type then it isn't listed. It is largely like byDir. It doesn't list extension by directory because it's for only the specific extension. I fudged it a little bit. There are over 80K files, 73K of which have no file extension. Instead they have prefixes of BLOB_, GB_, SOUNDBANK_ and TEXTURE_. With those I used BLOB, GB, SOUNDBANK and TEXTURE as the extensions. I need to do more with those because there's a lot of them, 30K in one directory, and many seem named in a heirachical manner similar to how you might structure a directory. A project for another day.
 

Attachments

Back
Top Bottom