first pass at using new keys
It compiles. It sorta works. Several subcommands are FIXME marked and broken, because things that used to accept separate --backend and --key params need to be changed to accept just a --key that encodes all the key info, now that there is metadata in keys.
This commit is contained in:
parent
675ee89749
commit
9d49fe2c17
20 changed files with 116 additions and 123 deletions
|
@ -13,6 +13,7 @@ import Control.Monad.State (liftIO)
|
|||
import Control.Monad (filterM, forM_)
|
||||
import System.Posix.Files
|
||||
import System.FilePath
|
||||
import Data.Maybe
|
||||
|
||||
import Content
|
||||
import Types
|
||||
|
@ -74,7 +75,7 @@ getKeysPresent0' dir = do
|
|||
else do
|
||||
contents <- liftIO $ getDirectoryContents dir
|
||||
files <- liftIO $ filterM present contents
|
||||
return $ map fileKey files
|
||||
return $ catMaybes $ map fileKey files
|
||||
where
|
||||
present d = do
|
||||
result <- try $
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue