backup-bear-notes
backup-bear-notes copied to clipboard
Titles that are too long to become filenames are not truncated
What file system did you run into this in? What happens when a filename is too long for the file system?
APFS. On a Mac running Big Sur.
/Users/matthewmurphy/.config/yarn/global/node_modules/backup-bear-notes/index.js:23
throw err
^
[Error: ENAMETOOLONG: name too long, open '/Users/matthewmurphy/Library/Mobile Documents/com~apple~CloudDocs/backup-test/this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long ti.md'] {
errno: -63,
code: 'ENAMETOOLONG',
syscall: 'open',
path: '/Users/matthewmurphy/Library/Mobile Documents/com~apple~CloudDocs/backup-test/this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long title this is a really long ti.md'
}
Issue persists with a more reasonably short directory path (/Users/matthewmurphy/test/)
If anyone can figure out the max file name length on Apple file systems, I'm open to any PRs that would trim filenames down to that length