summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-01-25 13:50:02 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-01-25 13:50:02 +0100
commit7ba1413ea99a8b7c683fedf94de3a3a764277b53 (patch)
tree57e20b3a14fd604b153fa20f9cc3d9b85bc644cc /src
parente536a5961c8ba795660c37349091c4a9427876fe (diff)
downloadhakyll-7ba1413ea99a8b7c683fedf94de3a3a764277b53.tar.gz
Add suffix to store files
This prevents file/directory clashes. Example: when we have a `tags` item, and a `tags/foo` item, there will be a clash since the store creates: - a file `store/tags`; - a file `store/tags/foo`. The second file requires the first file to be a directory. We simply solve this by adding a suffix to all store files, so it becomes: - a file `store/tags.hakyllstore`; - a file `store/tags/foo.hakyllstore`.
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Core/Store.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Core/Store.hs b/src/Hakyll/Core/Store.hs
index ab739a1..12e33a7 100644
--- a/src/Hakyll/Core/Store.hs
+++ b/src/Hakyll/Core/Store.hs
@@ -51,7 +51,7 @@ addToMap store path value =
--
makePath :: Store -> String -> Identifier -> FilePath
makePath store name identifier =
- storeDirectory store </> name </> toFilePath identifier
+ storeDirectory store </> name </> toFilePath identifier </> ".hakyllstore"
-- | Store an item
--