A remark beforehand
One needs to differ between path length and filename length. These are related to each other, but not the same. Therefore each of them can cause problems.
This depends on how deep you stored your vault in the directory hierachy. The vault internal path length has a maximum of 268 characters (see here for more info). But i guess it might be more helpful to show a little…
Example
Given:
- path to your vault is
D:\path\to\MyVault
(18 characters) - all paths are limited to 241 characters and
- the file name length to 180.
The overall path length is calculated by path prefix + encrypted filename length x + rest
where rest is the additional “overhead” for the internal vault structure (49 chars).
This leads to the linear system:
18 + 48 + x =< 241
x =< 180
The best solution is x=175
resulting in a file name length limit of 175 characters.