Pb avec la lib commons-net-ftp-2.0
Bonjour,
voila j'ai un petit soucis. Lorsque je ne renseigne pas mes variable (host,id,pass) pour me connecter a mon FTP. Java me retourne comme quoi la connexion c'est bien effectué et le transfert aussi :aie:
Code:
1 2 3 4 5 6 7 8 9 10
| String host= connexionFTP.getHost();
String username=connexionFTP.getUsername();
String password=connexionFTP.getPassword();
int reply = 0;
client.connect(host);
client.login(username,password);
System.out.println("Connected to " + client.getSystemName() + ".");
System.out.print(client.getReplyString());
reply = client.getReplyCode(); |
Citation:
Connected to UNIX Type: L8.
215 UNIX Type: L8