File priority in Rebex FTPS

–1 vote
asked Aug 31, 2017 by mrober68 (110 points)

I would like to know if it's possible to configure file priority to files when uploading to a FTPS.

I need to send a .SFV with file before sending files.

Right now, my code does a ftp.Upload of the SFV file and then a second ftp.Upload for the remaining files.

Applies to: Rebex FTP/SSL

1 Answer

–1 vote
answered Aug 31, 2017 by Lukas Matyska (59,530 points)

Unfortunately, there is no such feature as file priority. Sorry.

Your solution is the correct one.
If you have more .SFV files to be uploaded, you can use FileSet class to easily select them:

var sfvFiles = new FileSet("c:/data");
sfvFiles.Include("*.sfv", TraversalMode.MatchFilesDeep);

// upload all .SFV files first
client.Upload(sfvFiles, "/data");

var otherFiles = new FileSet("c:/data");
otherFiles.Exclude("*.sfv", TraversalMode.MatchFilesDeep);

// upload other files
client.Upload(otherFiles, "/data");