The limits for total path and filename are set by the kernel and file system used. These limits on Linux are generous - I think 4096 for the total path. I don't have any idea about the filename limit, but 255 characters seems reasonable.
/usr/src/linux-headers-4.4.0-130/include/uapi/linux/limits.h
shows:
Code:
#define PATH_MAX 4096 /* # chars in a path name including nul */
I've worked places long ago when 256 characters was the total path limit and we routinely overfilled that enough that we modified the length and rebuilt the kernels for all connected systems - almost 1000 Unix systems. This also meant rebuilding other code, since those headers are used by lots of normal applications and servers.
MSDOS is long dead. I would ignore it. Even FAT16 has extensions to allow much longer filenames.
https://en.wikipedia.org/wiki/Compar...systems#Limits will probably be helpful in your quest.
All current smartphones run OSes based on Unix. That means you can look up their file system limits and for Android, you can find the source code with limits.h where the PATH_MAX is set.
Bookmarks