build-tools/script/deploy-utils.js
async function createSftpConnection(client) {
  return new Promise((resolve, reject) => {
    client.sftp((error, sftp) => (error ? reject(error) : resolve(sftp)));
  });
}
async function createSftpConnection(client) {
  return new Promise((resolve, reject) => {
    client.sftp((error, sftp) => (error ? reject(error) : resolve(sftp)));
  });
}
async function createSftpConnection ( client ) { return new Promise ( ( resolve , reject ) => { client . sftp ( ( error , sftp ) => ( error ? reject ( error ) : resolve ( sftp ) ) ) ; } ) ; }
Create an SFTP connection
@param client
@returns {Promise<*>}
Create an SFTP connection