code: async function createDirectory(sftp, path) {
    return new Promise((resolve, reject) => {
      sftp.mkdir(path, error => (error ? reject(error) : resolve()));
    });
  }
docs: Create a directory on the server
  
  @param sftp
  @param path
  @returns {Promise<*>}