Copyright | (c) 2017 Red Hat Inc. |
---|---|
License | LGPL |
Maintainer | https://github.com/weldr |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions for exporting objects from the BDCS into a directory.
Documentation
directorySink :: (MonadError String m, MonadIO 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.