docs: public File downloadArtifactsFile(Object projectIdOrPath, Integer jobId, ArtifactsFile artifactsFile, File directory) throws GitLabApiException {
  
          Response response = get(Response.Status.OK, getDefaultPerPageParam(),
                  "projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "artifacts", artifactsFile.getFilename());
          try {
  
              if (directory == null)
                  directory = new File(System.getProperty("java.io.tmpdir"));
  
              String filename = artifactsFile.getFilename();
              File file = new File(directory, filename);
  
              InputStream in = response.readEntity(InputStream.class);
              Files.copy(in, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
              return (file);
  
          } catch (IOException ioe) {
              throw new GitLabApiException(ioe);
          }
      }