#include <fs-sink.hh>
Public Member Functions | |
RegularFileSink (Sink &sink) | |
void | createDirectory (const CanonPath &path) override |
void | createSymlink (const CanonPath &path, const std::string &target) override |
void | createRegularFile (const CanonPath &path, std::function< void(CreateRegularFileSink &)>) override |
Public Attributes | |
bool | regular = true |
Sink & | sink |
Restore a single file at the top level, passing along receiveContents
to the underlying Sink
. For anything but a single file, set regular = true
so the caller can fail accordingly.
|
inlineoverridevirtual |
Implements nix::FileSystemObjectSink.
|
overridevirtual |
This function in general is no re-entrant. Only one file can be written at a time.
Implements nix::FileSystemObjectSink.
|
inlineoverridevirtual |
Implements nix::FileSystemObjectSink.