Apologies, I am still unclear as to how you want to count the path length. You've mentioned counting folders and files differently but there will never be
only a folder in a given listview row. Every row will be a file of some sort. In other words, this is
not intended as a
folder renamer, only a
filename renamer. Are we on the same page with regard to that? For instance, based on what you said above, you want it like this:
file_1.exe | \
file_4.ext | \subfolder_1\
file_7.ext | \subfolder_2\
What you want is easily doable in a GUI sense. However,
the following will never happen:
file_1.exe | \
file_4.ext | \subfolder_1\
file_7.ext | \subfolder_2\
subfolder_3 | \subfolder_3\ <--- This can't happen.
If a folder is empty, nothing gets added to the listview. Does that make sense?
So, with all that in mind, I still need to know how you want these lengths counted. Maybe I'm not seeing the forest for the trees on this one.