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

FtpClient.mkdir()

Creates a new directory on the server.

The name of the directory is determined as the function's string parameter. Returns false when an error occured (e.g. due to access restrictions, directory already exists etc.), otherwise true.

Syntax
FtpObject.mkdir(pathString)

Example
var ftp = new FtpClient("ftp.host.dom");
ftp.login("user", "pass");
if (ftp.mkdir("testdir"))
   ftp.cd("testdir")
else
   ftp.logout();


... comment


Page last modified on 2002-07-16 10:00 by tobi