I have exactly the same probleme. Could you please send me the development version of WinSCP to fix my problem ?
I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
I have exactly the same probleme. Could you please send me the development version of WinSCP to fix my problem ?
ftpSession.PutFileToDirectory(@"C:\Temp\test[4].txt", "/");
Unhandled Exception: WinSCP.SessionRemoteException: File or folder 'C:\Temp\test[[]4].txt' does not exist.
RemotePath.EscapeFileMask(filename)
, it appears it converts my filename to the name in the exception, so I'm thinking PutFileToDirectory
automatically calls that on the local file parameter, but is not escaping correctly with square brackets?
PutFileToDirectory
method in my C# program. However, it fails on files with square brackets in the name, like Test[4]
. I assumed it was a filemask issue but I can't use RemotePath.EscapeFileMask
because it only takes the original filename and then the remote directory. Also, the documentation seems to indicate: