Separate names with a comma.
Discussion in 'Mac Basics and Help' started by larry5925, May 13, 2019.
Is there a file name and directory name length limit? Using Mac 10.14.4
wikipedia says that file name and directory path name size limits should be the same between the older HFS Plus, and the current APFS used in Mojave.
So, about 255 characters for a file name, and a path name has no practical limit.
However, some apps may have built-in limits for file names and path names - it's just not a limitation of the file system itself. More often, you might run into problems when using special characters, but that's just something that you watch out for as a normal user of a computer.
I'm having problems opening microsoft word 16.24 documents that are in the 11th level of sub folders with long sub directory names and file names.
Safe guess, if a limit, probably 1024 or 2048 characters.
--- Post Merged, May 13, 2019 ---
Office has a limit of 259
--- Post Merged, May 13, 2019 ---
If that 1024 is accurate, that's a lot of characters for a pathname. Even with only 11 levels, you would have to average about 90 characters per level to approach that.
You MIGHT want to look for special characters, not just alphanumeric.
Are those documents on a local drive, or are you downloading those through a net drive, or downloading from a remote server? If the documents are local, can you try moving the files up a few levels, at least as a test?
Ah, and I see that NoBoMac reports a much lower limit from Microsoft, which would now make sense.
If you are using Excel, the limit is even lower, Microsoft says 218 total characters for Excel files. Microsoft also points out that
hmm... Excel files would only get an average of 20 characters per level. If somebody gets crazy with folder names, then there you are.
Local 8.0 Lacie Drive. if the file itself is moved to the Desktop, the file opens as expected.
It works because you have now changed the length of the pathname to the file to something under 259 characters.
For example, if I have a Word document on an external drive, the pathname might be something like this.
That's 73 characters (yes, example is less than 259: Too lazy to make a >= 259 path).
Move to your Documents folder, now you have something like
That's now down to 51 characters.
So, if crazy deep with long folder and document names, probably butting up on Office's size limits, and when moved to local drive, truncated a bunch of characters from the pathname. Ie. going from > 259 characters (which Office cannot do) to about 50-70 (which Office can do).
Now to revise the whole file system. Big OUCH!!!
That would only be needed for the documents that you expect to use in Office. Possible that other apps wouldn't really need that manipulation.
I agree, only Microsoft Office products files need to be re-organized
Limitations are on the number of bytes rather than characters. Normally they are the same thing but special characters can use up more than one byte. For example, the emoji heart symbol ❤️ is 3 bytes. On the command line I was able to create a file of 255 bytes but no more.
I would hope you are NOT using multi-byte characters or emoji in file or folder names. I bet those would be the first that are disallowed by some apps.
That's a limit of HFS+:
Specifically, 255 UTF-16 encoding units, normalized to an Apple-modified variant of Unicode Normalization Format D, which decomposes accents from their base characters.