Exclude Sub Folders

Advertisement

mjj237@gmail.com
Joined:
Posts:
1
Location:
USA

Exclude Sub Folders

I am using VB.NET and I am retrieving files from a folder named /Output. Apparently there are sub-folders that have been added that I do not want to retrieve files from.
I am using the code below...
Dim transferOptions As New TransferOptions
transferOptions.TransferMode = TransferMode.Binary
transferOptions.FileMask = "|*/"
Dim transferResult As TransferOperationResult
transferResult =
    session.GetFiles(My.Settings.Source, My.Settings.Destination, False, transferOptions)
When I inserted the line
transferOptions.FileMask = "|*/"
I do not retrieve anything and I get the error message
Could not find directory '/Outbound'.
Can someone tell me what I have wrong here?

Thanks!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum