Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (220 points)
Hello,

I would like upload all files and his subrirectories from a local directory, to the root of a remote FTP server, but it don't works...

The problem is how to specify the root of the FTP server to the MultiplePut method, because i must specify a remote directory, if i just give "." or "./" or "" like remoteDir parameter then it rise an exception...

myFtp.MultiplePut(Application.StartupPath & "\aDirectory\", "./", "*.*", True)


For example if i specify a remote directory to the MultiplePut() method and not the root of the server then it works, but i want copy all this files and this subdirectories to the root, not into a directory at root of my server...

So, my question is, how to specify to the MultiplePut() method to upload all files from a local directory to the root of the remote FTP server ? Is it possible ?

Thanks for your help :),
Doots

1 Answer

0 votes
by (162k points)
Yes, I'm not sure you can do this directly.

Easiest way is to get a local file listing of the directory you wish to upload, put each file and use MultiplePut on each directory.

Hello,

I would like upload all files and his subrirectories from a local directory, to the root of a remote FTP server, but it don't works...

Doots

Categories

...