PutFileToDirectory fails with []
I'm trying to use the
You specify a path to the source file, not a wildcard, so you do not need to escape a literal file name.
Is this is a bug or am I missing something I need to set to send these files?
Thanks!
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:
You specify a path to the source file, not a wildcard, so you do not need to escape a literal file name.
Is this is a bug or am I missing something I need to set to send these files?
Thanks!