Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
–1 vote
815 views
in Java FTP by (280 points)
The FTP user's home directory is "/home/user". But the user has access to "/tmp" in the root directory. When trying to do FTPClient.chdir("/tmp"), the following error occurs - "com.enterprisedt.net.ftp.FTPException: 550 Failed to change directory.". The "/tmp" folder is accesible via WinSCP.

Directory structure:

+ /   (root)

++ home

++++user   (User's home directory)

++tmp

Jar version - edtftpj-pro-5.3.2

1 Answer

0 votes
by (9.1k points)

Hi,

Have you tried using the absolute path in order to chdir ? Also please see a previous similar article on this here.

Categories

...