Copyright | (c) 2017 Red Hat Inc. |
---|---|
License | LGPL |
Maintainer | https://github.com/weldr |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
BDCS.Export.Directory
Description
Functions for exporting objects from the BDCS into a directory.
- directorySink :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> Consumer (Files, Object) m ()
Documentation
directorySink :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> Consumer (Files, Object) m () Source #
A Consumer
that writes objects into a provided directory. Symlinks and other file-like
objects will be handled properly. Only some metadata is currently handled. Various errors
can be thrown depending on problems encountered when interacting with the filesystem.
It is expected that the caller will decide whether the destination directory should be empty or not. This function does nothing to enforce that.