![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#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, fun< void(CreateRegularFileSink &)>) override |
| Public Member Functions inherited from nix::FileSystemObjectSink | |
| virtual void | createDirectory (const CanonPath &path, DirectoryCreatedCallback callback) |
Public Attributes | |
| bool | regular = true |
| Sink & | sink |
Additional Inherited Members | |
| Public Types inherited from nix::FileSystemObjectSink | |
| using | DirectoryCreatedCallback = fun<void(FileSystemObjectSink & dirSink, const CanonPath & dirRelPath)> |
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.