Skip to content

client API methods create directory

hannsolo edited this page May 6, 2020 · 2 revisions

createDirectory(path: string, copyOptions?: ICopyOptions): Promise<boolean>

Create a new directory.

client.login("user", "password")
.then( () => {
    client.createDirectory("images/newDir")
    .then( (success) => {
      console.log("dir created with result " + success);
    })
    .catch(console.error)
    .finally( () => {
      client.logout();
    })
})
.catch(console.error);
Clone this wiki locally