Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::NullFileSystemObjectSink Struct Reference

#include <fs-sink.hh>

Inheritance diagram for nix::NullFileSystemObjectSink:
nix::FileSystemObjectSink

Public Member Functions

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)

Additional Inherited Members

Public Types inherited from nix::FileSystemObjectSink
using DirectoryCreatedCallback = fun<void(FileSystemObjectSink & dirSink, const CanonPath & dirRelPath)>

Detailed Description

Ignore everything and do nothing

Member Function Documentation

◆ createDirectory()

void nix::NullFileSystemObjectSink::createDirectory ( const CanonPath & path)
inlineoverridevirtual

◆ createRegularFile()

void nix::NullFileSystemObjectSink::createRegularFile ( const CanonPath & path,
fun< void(CreateRegularFileSink &)>  )
overridevirtual

This function in general is no re-entrant. Only one file can be written at a time.

Implements nix::FileSystemObjectSink.

◆ createSymlink()

void nix::NullFileSystemObjectSink::createSymlink ( const CanonPath & path,
const std::string & target )
inlineoverridevirtual

The documentation for this struct was generated from the following files:
  • libutil/include/nix/util/fs-sink.hh
  • libutil/fs-sink.cc