diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2017-03-12 15:49:49 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-03-12 15:49:49 -0700 |
commit | a4fbdb7b1d60b6536822f8a1895c917a1ccf4d5c (patch) | |
tree | 0f8855c8d89e4accf88e074d61e479c2a7f184ee | |
parent | 83c33e903fd28a5441a5dc494f48167c5fea1a8c (diff) | |
download | sscan-a4fbdb7b1d60b6536822f8a1895c917a1ccf4d5c.tar.gz |
fix calls to renamePath
-rw-r--r-- | Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ processScanSessDir st dir = withCurrentDirectory dir $ do void $ createProcessWait_ "convert" (proc "convert" (allPages ++ ["temp.pdf"])) -- 2. set metadata with pdftk - renamePath "temp.pdf" "temp2.pdf" + renamePath (dir </> "temp.pdf") (dir </> "temp2.pdf") writeFile "metadata" (metadata posix) void $ createProcessWait_ "pdftk" (proc "pdftk" @@ -64,7 +64,7 @@ processScanSessDir st dir = withCurrentDirectory dir $ do } -- 3. maybe ocrmypdf when (st^.stOCR) $ do - renamePath "temp.pdf" "temp2.pdf" + renamePath (dir </> "temp.pdf") (dir </> "temp2.pdf") void $ createProcessWait_ "OCRmyPDF" (proc "ocrmypdf" ["-c", "-i", "-r", "temp2.pdf", "temp.pdf"]) { std_in = NoStream |