summaryrefslogtreecommitdiff
path: root/src/PhotoStore.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/PhotoStore.hs')
-rw-r--r--src/PhotoStore.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PhotoStore.hs b/src/PhotoStore.hs
index c6c043e..62d7244 100644
--- a/src/PhotoStore.hs
+++ b/src/PhotoStore.hs
@@ -30,8 +30,8 @@ getAlbums :: Config -> IO [Album]
getAlbums config = do
pending <- getDirectoryFiles (pendingPath config)
permanent <- getDirectoryFiles (photosPath config)
- return ([Album name True | name <- sort pending] ++
- [Album name False | name <- sort permanent])
+ return ([Album name True | name <- sort pending, validAlbumName name] ++
+ [Album name False | name <- sort permanent, validAlbumName name])
albumDirectory :: Config -> Album -> FilePath
albumDirectory config album