+1 vote

Does your dll have a method for uploading whole directory from local to ftp?

by

1 Answer

0 votes

Yes, you can do that using Ftp.UploadFiles:

ftp.CreateFolder("RemoteFolder");
ftp.UploadFiles("RemoteFolder", @"c:\LocalFolder\");

Using 3rd parameter - LocalSearchOptions - you can for example upload only files with specific extension:

ftp.CreateFolder("RemoteFolder");
ftp.UploadFiles("RemoteFolder", @"c:\LocalFolder\", 
    new LocalSearchOptions("*.txt", true));
by (276k points)
...