Subject: FileSystem.TransferFiles, but with selected files only
Date: 2013-07-30 18:11:24
From: Sam Tai
Source: filesystem-transferfiles-selected-files
----------------------------------------------------------------------

I need to get the list of files to upload because the directory contents are dynamic.  So I've got:

FileSystem fs = client as FileSystem;
TransferOptions transferOptions = new TransferOptions();
transferOptions.Recursive = RecursionMode.None;f
oreach (string path in Directory.GetFiles(localDirectory, fileMask))
{
  FileInfo fi = new FileInfo(path); 
  FileSystem.TransferFiles(DiskFileSystem.Default, @"C:\Export\", ????, fs, @"upload/", transferOptions);
}

My problem is the ???? IFileInfo[] parameter.  How do I convert between System.IO.FileInfo to IFileInfo?

Also, there is supposed to be a third overload where string[] replaces IFileInfo[] but that does not seem to be working.

Please help!

---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index