Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in .NET FTP by (180 points)
I am trying to get list of files from a server in different folders. I am getting the list without any problem but when I try to get a files list from the folder that dosn't exist on the server then I get error that "System can not get the file specified". Is there any way that I could check that the folder exist on the server or not before getting the files list!

1 Answer

0 votes
by (162k points)
Get the folder list of the parent. If it isn't in there, it doesn't exist. Alternatively, try changing current directory. If it fails, it doesn't exist (or you don't have perms in it).

Categories

...