Public Member Functions | |
virtual void | createDirectory (const CanonPath &path)=0 |
virtual void | createRegularFile (const CanonPath &path, std::function< void(CreateRegularFileSink &)>)=0 |
virtual void | createSymlink (const CanonPath &path, const std::string &target)=0 |
|
pure virtual |
This function in general is no re-entrant. Only one file can be written at a time.
Implemented in nix::GitFileSystemObjectSinkImpl, nix::MemorySink, nix::NarAccessor::NarIndexer, nix::NullFileSystemObjectSink, nix::RegularFileSink, nix::RestoreSink, and nix::test::TracingFileSystemObjectSink.