EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Wildcard Uploads

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#17466
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.

Thanks!
#17468
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).
#17470
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. :)

Reply

Statistics

Topic viewed 735 times

Number of guests: 1, 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!