It should throw an IO error to the OS.
EDIT: For reference, same test on Gdrive
stringNeedsEscaping = []rune{
'/', '5', '8', '9', 'A', 'C', 'Z', '\a', '\b', '\f', '\n', '\r', '\t', '\u007f', '\v', '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x0e', '\x0f', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', ']', 'o', 'p', 's', 'u'
}
maxFileLength = 7722
canWriteUnnormalized = true
canReadUnnormalized = true
canReadRenormalized = false
canStream = true
So from what you say @ncw, pathnames on Gdrive are basically unlimited? (8K). The only real limitation is 143 chars on the actual filename (or leafname as I learned from you).
If so I've been misunderstanding. I've been trying to keep my directories short because I thought the limit was on the while path+leafname combined. If you can confirm, because if so I can stop worrying about it and using some longer and more clarifying names