I've a user that is allowed to specific directory in FTP server. While connecting to ftp server using host, port, username and password, I get the error below:
User cannot log in, home directory inaccessible. 530
I know that my user is only allowed to specific directory like /user/dir, but I do not know how to connect directly into it.
Hello,
I've a user that is allowed to specific directory in FTP server. While connecting to ftp server using host, port, username and password, I get the error below:
User cannot log in, home directory inaccessible. 530
I know that my user is only allowed to specific directory like
/user/dir
, but I do not know how to connect directly into it.I'm sharing my code snippet below:
As I know
secureOptions
is same with tls.connect() options and I tried to addpath
intosecureOptions
but it didn't work.How can I connect to specific directory in remote?