FTPClient » MakeDirectory
Creates a directory on the ftp server. Returns true
if the directory was created or false
otherwise.
js
client.MakeDirectory(remoteDirectory);
Parameters
remoteDirectory
- The remote directory to create.
Example
js
let client = ftp.Connect(
"sftp",
"example.domain.com",
22,
"brad",
"password"
);
if (client.IsConnected()) {
let result = client.MakeDirectory('/remote/path/docs');
console.log("Make directory result: " + result);
}