mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
7e2cddc5f5
commit
9505cb3a76
|
@ -129,6 +129,24 @@ getFileTimestamp filePath = do
|
|||
t0 <- liftIO $ getModificationTime filePath
|
||||
pure (round $ utcTimeToPOSIXSeconds t0)
|
||||
|
||||
|
||||
data EntryType = File | Dir
|
||||
deriving stock (Eq,Ord,Show,Data,Generic)
|
||||
|
||||
data EntryDesc =
|
||||
EntryDesc
|
||||
{ entryType :: EntryType
|
||||
, entryTimestamp :: Word64
|
||||
}
|
||||
deriving stock (Eq,Ord,Show,Data,Generic)
|
||||
|
||||
data DirEntry = DirEntry EntryDesc FilePath
|
||||
deriving stock (Eq,Ord,Show,Data,Generic)
|
||||
|
||||
entriesFromLocalFile :: MonadUnliftIO m => FilePath -> FilePath -> m [DirEntry]
|
||||
entriesFromLocalFile prefix fn = do
|
||||
pure mempty
|
||||
|
||||
runDirectory :: ( IsContext c
|
||||
, SyncAppPerks m
|
||||
, Exception (BadFormException c)
|
||||
|
|
Loading…
Reference in New Issue