code: public void download() {
          URL dataURL = null;
          String fileName = folder + "/" + url.substring(url.lastIndexOf("/") + 1);
          if (new File(fileName).exists()) {
              return;
          }
          try {
              dataURL = new URL(url);
          } catch (MalformedURLException e) {
              e.printStackTrace();
          }
  
          File downloadedData = new File(fileName);
          try {
              assert dataURL != null;
              FileUtils.copyURLToFile(dataURL, downloadedData);
          } catch (IOException e) {
              e.printStackTrace();
          }
      }
docs: Downloads the file from the provided url.