EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Wildcard Uploads

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 09/08/2011 09:33:09
by Tal Kelley (Standard support level)
Joined: 09/08/2011
Posts: 3

I am trying out the SecureBlackbox SFTP components, and have everything working fine for single files. Sometimes I do not know the file name; is there a way to upload for example "ImportantFile*.doc"?

That way all files that begin with "ImportantFile" are uploaded?

I assume RemoteFileName is required in the UploadFile method.

Posted: 09/08/2011 10:19:18
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Our SFTP component supports both regular expressions and multiple wildcards in group operations (UploadFiles, DownloadFiles, RemoveFiles and ListDirectory).
Posted: 09/08/2011 12:39:14
by Tal Kelley (Standard support level)
Joined: 09/08/2011
Posts: 3

Yes, I saw that earlier. Should have tried before asking. Here is the info if anyone needs help in the future:

System.String strRemotePath = sftpClient.RequestAbsolutePath("/in/staging/")

Client.UploadFiles("c:\UploadFolder\", "*.txt", strRemotePath, TSBFileTransferMode.ftmOverwrite, false, TSBCaseConversion.sccNone, false);

I hard coded the paths and all above for ease of reading. :)



Topic viewed 720 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!