Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

mjj237@gmail.com

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!