aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/Compiler.hs
diff options
context:
space:
mode:
authorpacien2020-02-14 15:39:56 +0100
committerNotkea2020-02-17 21:07:39 +0100
commit395a76bc4193c0c7182f87778458a68d0079e836 (patch)
tree72a4e6fd10ff8053f5a3e7fdbf4f6d63817ac00b /compiler/src/Compiler.hs
parentc3c69b601d834c8df7cba88a0d3149b56cdd5d14 (diff)
downloadldgallery-395a76bc4193c0c7182f87778458a68d0079e836.tar.gz
compiler: metadata sidecar for whole directories
GitHub: closes #3
Diffstat (limited to 'compiler/src/Compiler.hs')
-rw-r--r--compiler/src/Compiler.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs
index 2a0dccc..bfefa63 100644
--- a/compiler/src/Compiler.hs
+++ b/compiler/src/Compiler.hs
@@ -116,7 +116,7 @@ compileGallery inputDirPath outputDirPath excludedDirs rebuildAll cleanOutput =
116 let itemProc = itemProcessor config cache 116 let itemProc = itemProcessor config cache
117 let thumbnailProc = thumbnailProcessor config cache 117 let thumbnailProc = thumbnailProcessor config cache
118 let galleryBuilder = buildGalleryTree itemProc thumbnailProc (tagsFromDirectories config) 118 let galleryBuilder = buildGalleryTree itemProc thumbnailProc (tagsFromDirectories config)
119 resources <- galleryBuilder (galleryName config) inputTree 119 resources <- galleryBuilder inputTree
120 120
121 when cleanOutput $ galleryCleanupResourceDir resources outputDirPath 121 when cleanOutput $ galleryCleanupResourceDir resources outputDirPath
122 writeJSON outputIndex resources 122 writeJSON outputIndex resources