When the user chooses "Save As" on a canvas that already has a savePath, the full savePath is given to UnityEditor's SaveFilePanellnProject as its starting path. If the user specifies a different name without changing directories, that name is added to the end of the full savePath (including original asset name), generating an exception when unity attempts to write to the path. It seems like SaveFileInPath expects only a directory as the path parameter.
I've solved by parsing the savePath a bit before input into SaveFilePanelInProject:
When the user chooses "Save As" on a canvas that already has a savePath, the full savePath is given to UnityEditor's SaveFilePanellnProject as its starting path. If the user specifies a different name without changing directories, that name is added to the end of the full savePath (including original asset name), generating an exception when unity attempts to write to the path. It seems like SaveFileInPath expects only a directory as the path parameter.
I've solved by parsing the savePath a bit before input into SaveFilePanelInProject: