build-tools/script/deploy-utils.js
async function uploadFile(sftp, source, target) {
  return new Promise((resolve, reject) => {
    sftp.fastPut(source, target, error => (error ? reject(error) : resolve()));
  });
}
async function uploadFile(sftp, source, target) {
  return new Promise((resolve, reject) => {
    sftp.fastPut(source, target, error => (error ? reject(error) : resolve()));
  });
}
async function uploadFile ( sftp , source , target ) { return new Promise ( ( resolve , reject ) => { sftp . fastPut ( source , target , error => ( error ? reject ( error ) : resolve ( ) ) ) ; } ) ; }
Upload a file to the provided ftp server
@param sftp
@param source
@param target
@returns {Promise<*>}
Upload a file to the provided ftp server