bdcs-0.1.0: Tools for managing a content store of software packages

Copyright(c) 2017 Red Hat Inc.
LicenseLGPL
Maintainerhttps://github.com/weldr
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

BDCS.Export.Directory

Description

Functions for exporting objects from the BDCS into a directory.

Synopsis

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.