From 7ba1413ea99a8b7c683fedf94de3a3a764277b53 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 25 Jan 2011 13:50:02 +0100 Subject: 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`. --- src/Hakyll/Core/Store.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- -- cgit v1.2.3