I am a newbie Python beginner. Need help with a code to output all folders in my D drive of my Windows 10 machine which have files (sub-folders -> subfolders etc) which has length more than 250 characters.
I have subscribed for cloud backup of a very popular cloud backup provider which has 250 characters file path length limit. So, it automatically excludes all files which have length more than 250 chars. So, it would be very helpful if I get a few lines of code which outputs the below:
Output -> All the root folders in D drive which have files which have more than 250 char length so that I can shorten the length of those folders specifically. I have 5 TB data so it's obvious that it's not a manual task.
Thanks for understanding.