File priority in Rebex FTPS

0 votes
asked Aug 31 by mrober68 (120 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

0 votes
answered Aug 31 by Lukas Matyska (38,360 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");