But it doesn't quite work. The full path is clipped. texturePath is missing the last like 50 characters. The function returns true, which means there was plenty of space in the buffer, so it is not a size issue.