![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Public Types | |
| using | DirectoryCreatedCallback = fun<void(FileSystemObjectSink & dirSink, const CanonPath & dirRelPath)> |
Public Member Functions | |
| virtual void | createDirectory (const CanonPath &path)=0 |
| virtual void | createDirectory (const CanonPath &path, DirectoryCreatedCallback callback) |
| virtual void | createRegularFile (const CanonPath &path, fun< void(CreateRegularFileSink &)>)=0 |
| virtual void | createSymlink (const CanonPath &path, const std::string &target)=0 |
|
pure virtual |
Implemented in nix::RestoreSink.
|
inlinevirtual |
Create a directory and invoke a callback with a pair of sink + CanonPath of the created subdirectory relative to dirSink.
Reimplemented in nix::RestoreSink.
|
pure virtual |
This function in general is no re-entrant. Only one file can be written at a time.
Implemented in nix::MemorySink, nix::NullFileSystemObjectSink, nix::RegularFileSink, and nix::RestoreSink.