Re: FileMask with session.PutFiles()
Does the same Filemask syntax apply to session.PutfFiles also?
I need to transfer all the files in a directory without including any sub directories and delete source files on successful transfer.
Will the following code work?
TransferOptions transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Binary;
transferOptions.FileMask = "*.*| */";
session.PutFiles(source\*, target, true, transferOptions);
Your code looks good. Any problems?