Helma logo
helma.org » Home > Stories > FtpClient.lcd()

FtpClient.lcd()

Changes the working directory of the local machine when being connected to an FTP server.

Syntax
FtpObject.lcd(pathString)

Example
var ftp = new FtpClient("ftp.host.dom");
ftp.login("user", "pass");

// use absolute pathname
ftp.lcd("/home/users/fred/www");

// change to parent directory
ftp.lcd("..");

// use relative pathname
ftp.lcd("images");


... comment


Page last modified on 2002-07-16 09:52 by tobi

 
harrietcl, Sunday, 15. June 2003, 11:36
lcd(String)?
Hi, just wondering, does the lcd() still works? It couldn't from my machine...

... link  

 
hns, Monday, 16. June 2003, 15:10
Works for me
possibly this is an issue of encoding file name separators. You can check the return value of lcd() - it's true if the command succeeded, false otherwise.

... link  


... comment