Re: Exclude Multiple Folders from SFTP transfer
Duplicate post: https://winscp.net/forum/viewtopic.php?t=24324#122745
/server/path/one
and /server/path/two
.
Dim transferOptions As New TransferOptions
transferOptions.TransferMode = TransferMode.Binary
transferOptions.FileMask = $"/server/path/one/;/server/path/two/ | */"
transferOptions.AddRawSettings("NewerOnly", "1")
Dim transferResult As TransferOperationResult
transferResult = session.GetFiles($"{ServerDirectory}", $"{ClientDirectory}", False, transferOptions)