on master help sign in
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`.

commit7ba1413ea99a8b7c683fedf94de3a3a764277b53 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateTue 25 Jan 2011, 13:50 (16 years ago) parente536a59
1 file changed+1−1
src/Hakyll/Core/Store.hs+1−1
src/Hakyll/Core/Store.hs+1−1
@@ -51,7 +51,7 @@ addToMap store path value =
5151--
5252makePath :: Store -> String -> Identifier -> FilePath
5353makePath store name identifier =
54− storeDirectory store </> name </> toFilePath identifier
54+ storeDirectory store </> name </> toFilePath identifier </> ".hakyllstore"
5555
5656-- | Store an item
5757--