/**
   * Retrieves a folder at `path`. Returns the folder's contents zipped. Android only.
   *
   * @param path the path to the folder on the device
   * @param decode true/false decode the data (base64) before returning it (default=false)
   * @return The pull folder info
   */
  @RobotKeyword
  @ArgumentNames({"path", "decode=false"})
  public String pullFolder(String path, String decode) {
    AppiumDriver driver = applicationManage.getCurrentDriver();
    boolean isDecode = Boolean.parseBoolean(decode);
    byte[] theFolder = null;
    if (driver instanceof AndroidDriver) {
      AndroidDriver android = (AndroidDriver) driver;
      theFolder = android.pullFolder(path);
      if (isDecode) {
        theFolder = Base64.decodeBase64(theFolder);
      }
    } else {
      throw new AppiumLibraryFatalException("This keyword only support android platform");
    }

    return new String(theFolder);
  }