[Tool]Flattener

Samo_936

New Member
May 30, 2017
9
3
Found a short Windows CMD script for flattening files in nested directories to a parent directory.



I use this script after unpacking a Ren'py RPA file to flatten nested directories of images into one directory.

The script appends a number to the end of the filename to prevent overwriting of duplicate named files.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,134
14,817
I use this script after unpacking a Ren'py RPA file to flatten nested directories of images into one directory.
And so breaking all games that need to address the image by their path...


The script appends a number to the end of the filename to prevent overwriting of duplicate named files.
...and by their name.


What is exactly the problem with images distributed into a hierarchical directory tree ? Even when seen from a CG gallery point of view, it's easier to find what you are searching, no ?