code: async function createSftpConnection(client) {
    return new Promise((resolve, reject) => {
      client.sftp((error, sftp) => (error ? reject(error) : resolve(sftp)));
    });
  }
docs: Create an SFTP connection
  @param client
  @returns {Promise<*>}