|
Hi, I have an issue in which I would appreciate your help. The scenario is that I am connecting to an FTP server by getting values from Database. In the same method, where i am connecting the FTP with the server, I am also calling the FTP.login(xx,xxx) method. The problem i am facing is that I can keep track of FTP State, whether it is Ready, or Disconnected etc. from the property. But I am unable to know whether the User was logged in successfully or not. I mean if the connection was successful, but for some reason, an error occurred in the Login method, how am i supposed to know whether the user is successfully logged in or not? Thanks in advance ! |
|
If the Ftp.Login method failed the FtpException is thrown. If no exception is thrown user was successfuly logged in (you don't need to check any log-in status). |