Result for 48441F33164544CB8105FB5DA47C69E2B5597D65

Query result

Key Value
MD5286053A29246DBEC151A4ADB068EB672
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
PackageRelease3.10
PackageVersion0.12.1
SHA-148441F33164544CB8105FB5DA47C69E2B5597D65
SHA-256F0BC140161F7C944916B99DA67A8B7102E72A80B7852C11540EE6B0678233F1E
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.4.4/directory-tree-0.12.1-CADH3Q9bjnY7TUZ3MjLnQG/libHSdirectory-tree-0.12.1-CADH3Q9bjnY7TUZ3MjLnQG-ghc8.4.4.so
FileSize136624
MD5E71D9C8F22676BE7D3FE23895BAC67D6
SHA-142BE7B7D035959AF9C93CCD6FE5B04A1B7A45FF1
SHA-25639E6812DC1166CD60469FD5C911DF1957F281AD2D5143B1AE75DAB3E4AF9E962
SSDEEP3072:gsBs5hyM1r+7Qv5qI2zU0QHPq9CquUF6I:hBsYcaf
TLSHT104D325317B98A47EC8BE1670D5694BA8363079EBCB0E773627A492B51F711401FE90E3