Result for B6185FB84B2FED5EE0118BAD8B0894AF8B336BCE

Query result

Key Value
MD501940CC9108D77A429CF89F8DDEA9E63
PackageArchx86_64
PackageDescriptionA simple directory-like tree datatype, with useful IO functions and Foldable and Traversable instance Provides a simple data structure mirroring a directory tree on the filesystem, as well as useful functions for reading and writing file and directory structures in the IO monad. Importing the library and optional (useful) Foldable and Traverable libraries: > import System.Directory.Tree > import qualified Data.Foldable as F > import qualified Data.Traversable as T Write a hand-made directory tree of textfiles (strings) to the disk. Simulates creating a new user Tux's home directory on a unix machine: > writeDirectory$ "/home" :/ Dir "Tux" [File "README" "Welcome!"] "read" a directory by opening all the files at a filepath with readFile, returning an 'AnchoredDirTree String' (d2). Then check for any IO failures: > do (base :/ d2) <- readDirectory "../parent_dir/dir2/" > let failed = anyFailed d2 > if failed then ... Use Foldable instance function to concat a directory 'dir' of text files into a single file under the same directory: > do (b :/ dt) <- readDirectory dir > let f = F.concat dt > return$ b :/ File "ALL_TEXT" f Open all the files in the current directory as lazy bytestrings, ignoring the base path in Anchored wrapper: > import qualified Data.ByteString.Lazy as B > do (_ :/ dTree) <- readDirectoryWith B.readFile "./" This version also offers an experimental function `readDirectoryWithL` that does lazy directory IO, allowing you to treat the returned `DirTree` as if it were a normal lazily-generated data structure. For example, the following does only the amount of IO necessary to list the file names of the children of the root directory, similar to "ls /": > do d <- readDirectoryWithL readFile "/" > mapM_ (putStrLn . name) $ contents $ free d Any ideas or suggestions for improvements are most welcome :-) /CHANGES/: from 0.11 - export 'System.Directory.Tree.transformDir' as requested - add test suite to cabal file - remove redundant 'removeNonexistent' (thanks to dmwit for patch) .
PackageNameghc-directory-tree
PackageReleaselts13.1.25
PackageVersion0.12.1
SHA-1B6185FB84B2FED5EE0118BAD8B0894AF8B336BCE
SHA-25640504B02675DC29168C0BFACECD7F6BB3ECB6B64D4EF6E93107D04445ADC38D3
hashlookup:children-total2
hashlookup:trust50

Network graph view

Children (Total: 2)

The searched file hash includes 2 children files known and seen by metalookup. A sample is included below:

Key Value
FileName./usr/share/licenses/ghc-directory-tree/LICENSE
FileSize1270
MD512B27AD48F06B18BF2D0656C374981E8
SHA-1323630B01BFBB300E914CE96540BAF5B23BFE774
SHA-2560591C1377F9618C5EA68A5D75D4141214309B4297A5256971E6CE4FB1ED31078
SSDEEP24:IUnogbOIhrYFT5JyhrYFTX7995432s4EOk0d6QROF32s3yTtTfRzS137TwZlBHv:jOorYJCrYJB95432svMQ32s3utFzS13o
TLSHT1E221459B124047E745E257953AA15DC4A0DDD03D3F136D041C7AB245673B12EE8BB451
tar:gnamewheel
tar:unameroot
Key Value
FileName./usr/lib64/ghc-8.6.5/directory-tree-0.12.1/libHSdirectory-tree-0.12.1-2IgthAUAtCZ2oOYf2Yo7Fl-ghc8.6.5.so
FileSize137656
MD5B0C285E8DC39CECBA1CF992738A145FB
SHA-1339076A559D32DC1AC90D315AF337B65409835B2
SHA-25675C77107BD9E1F0EF293828EF1AECE3FEE97AC54CF2AE4AF50F16A187539BEDF
SSDEEP3072:6U1nWA5THyM1u+7vQQXsFHP6HzX7aChDd:15WAGHkP
TLSHT128D353317B88A86EDD7D0A70C7664DA9337078A6CB0E7E3B5360A3791E621051FD94E3