–1 vote
by (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
by (73.5k 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.Include("*");
otherFiles.Exclude("*.sfv", TraversalMode.MatchFilesDeep);

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