Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug] Output path for pipelines

Open benj919 opened this issue 3 weeks ago • 0 comments

Installation Method

Docker fat

The Problem

I'm trying to configure pipelines for automatic processing. Either I misunderstand the config or the output path is a bit mangled?

{outputFolder}

Just using the outputFolder somewhat predictably puts the output files into "pipeline/finishedFolders":

  "outputDir": "{outputFolder}",
  "outputFileName": "{filename}"

[scheduling-1] INFO s.s.S.c.a.p.PipelineDirectoryProcessor - File moved and renamed to ././pipeline/finishedFolders/redacted.pdf

{outputFolder}/{folderName}

Trying to use folderName from the example though results in a much more questionable out:

  "outputDir": "{outputFolder}/{folderName}",
  "outputFileName": "{filename}"

[scheduling-1] INFO s.s.S.c.a.p.PipelineDirectoryProcessor - File moved and renamed to ././pipeline/finishedFolders/./pipeline/inbox/redacted.pdf

I'd expect the foldername to be just the current pipline name. So if I put the config in pipeline/watchedFolders/inbox I'd expect the output to go to pipeline/finishedFolders/inbox not pipeline/finishedFolders/pipeline/inbox

though as of finishing writing this, the simple solution for now is to just mount the docker volume to that folder: ./processed:/pipeline/finishedFolders/pipeline/inbox

Version of Stirling-PDF

App Version: 0.40.2

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

No response

Docker Configuration

volumes:
  - ./inbox:/pipeline/watchedFolders/inbox
  - ./processed:/pipeline/finishedFolders/inbox

Relevant Log Output


Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • [x] I have verified that there are no existing issues raised related to my problem.

benj919 avatar Feb 05 '25 23:02 benj919