build-tools/script/deploy-utils.js
async function createDirectory(sftp, path) {
  return new Promise((resolve, reject) => {
    sftp.mkdir(path, error => (error ? reject(error) : resolve()));
  });
}
async function createDirectory(sftp, path) {
  return new Promise((resolve, reject) => {
    sftp.mkdir(path, error => (error ? reject(error) : resolve()));
  });
}
async function createDirectory ( sftp , path ) { return new Promise ( ( resolve , reject ) => { sftp . mkdir ( path , error => ( error ? reject ( error ) : resolve ( ) ) ) ; } ) ; }
Create a directory on the server

@param sftp
@param path
@returns {Promise<*>}
Create a directory on the server