Logged In: NO

the problem happens when I declare de file thus:

new FtpFile(pathWithName, client);

if you declare the file of the following way:

new FtpFile(path, name, client);