| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | pxqr.sta@gmail.com |
| Safe Haskell | None |
Data.Torrent.Tree
Contents
Description
Directory tree can be used to easily manipulate file layout info.
Directory tree
DirTree is more convenient form of LayoutInfo.
Construction
build :: LayoutInfo -> DirTree ()Source
Build directory tree from a list of files.
Query
lookupDir :: [FilePath] -> DirTree a -> Maybe [(BS.ByteString, DirTree a)]Source
Lookup directory by path.
fileNumber :: DirTree a -> Sum IntSource
Get total count of files in directory and subdirectories.