code: async function readDirectory(sftp, path) {
    return new Promise(resolve => {
      sftp.readdir(path, (error, list) => {
        resolve(list || null);
      });
    });
  }
docs: Read a directory
  @param sftp
  @param path
  @returns {Promise<*>}