Re: How to exclude files using TransferOptions
Use
https://winscp.net/eng/docs/library_transferoptions#filemask
https://winscp.net/eng/docs/file_mask
WinSCP GUI can generate the code for you:
https://winscp.net/eng/docs/guide_automation#generating
TransferOptions.FileMask
:
https://winscp.net/eng/docs/library_transferoptions#filemask
https://winscp.net/eng/docs/file_mask
var transferOptions = new TransferOptions {
FileMask = "| @Rec/; .DS_Store/"
};
WinSCP GUI can generate the code for you:
https://winscp.net/eng/docs/guide_automation#generating