Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by (480 points)
HI Guys,

Listen I'm new to .NET but have programmed in C++ for a number s of years. I'm currently trying to write an application that get files from an ftp server and puts them in a local directory. This should be easy but i'm having a nightmare doing it. HOW DO YOU GET THE ACTUAL FILENAME on the ftp server without getting all the path as well?

Currently, I'm trying to specify the local path with filename so it knows where to store the transferred file but the GetFiles() function returns the full path.

Can anyone help???

1 Answer

0 votes
by (162k points)
If you cd into the file's remote directory, and use GetFileInfos you should be ok.

Categories

...