I have a deeply nested directory structure.
I would like it to be legal on popular file systems (linux, mac, and windows).
So I would like to limit the total length of "Pathname + Filename" for each file -- to some appropriate maximum (say, a thousand).
So first I need to determine all files whose pathname plus filename exceeds this limit -- and by how much.
I'll need to do other things later, like shorten it -- possibly by moving deep nodes higher up.
I have checked many bash and python approaches. They tell me variously . .
Code:
how to disable path limit in python
how many characters are in the file itself, as opposed to in its name
how to determine the length of a single filename -- but not using directory traversal
But none of them give the above-noted information.
Any suggestions much appreciated !!