MissingH API ManualContentsIndex
MissingH.IO.HVFS.Utils
Portability portable
Stability provisional
Maintainer jgoerzen@complete.org
Description

This module provides various helpful utilities for dealing filesystems.

Written by John Goerzen, jgoerzen@complete.org

To operate on your system's main filesystem, just pass SystemFS as the first parameter to these functions.

Synopsis
recurseDir :: HVFS a => a -> FilePath -> IO [FilePath]
recurseDirStat :: HVFS a => a -> FilePath -> IO [(FilePath, HVFSStatEncap)]
recursiveRemove :: HVFS a => a -> FilePath -> IO ()
lsl :: HVFS a => a -> FilePath -> IO String
data SystemFS = SystemFS
Documentation
recurseDir :: HVFS a => a -> FilePath -> IO [FilePath]

Obtain a recursive listing of all files/directories beneath the specified directory. The traversal is depth-first and the original item is always present in the returned list.

If the passed value is not a directory, the return value be only that value.

The "." and ".." entries are removed from the data returned.

recurseDirStat :: HVFS a => a -> FilePath -> IO [(FilePath, HVFSStatEncap)]
Like recurseDir, but return the stat() (System.Posix.Files.FileStatus) information with them. This is an optimization if you will be statting files yourself later.
recursiveRemove :: HVFS a => a -> FilePath -> IO ()
Removes a file or a directory. If a directory, also removes all its child files/directories.
lsl :: HVFS a => a -> FilePath -> IO String

Provide a result similar to the command ls -l over a directory.

Known bug: setuid bit semantics are inexact compared with standard ls.

data SystemFS
Constructors
SystemFS
Instances
HVFS SystemFS
HVFSOpenable SystemFS
Eq SystemFS
Show SystemFS
Produced by Haddock version 0.6