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

#include <fs-sink.hh>

Inheritance diagram for nix::RestoreSink:
nix::FileSystemObjectSink

Public Member Functions

 RestoreSink (bool startFsync)
 
void createDirectory (const CanonPath &path) override
 
void createRegularFile (const CanonPath &path, std::function< void(CreateRegularFileSink &)>) override
 
void createSymlink (const CanonPath &path, const std::string &target) override
 

Public Attributes

std::filesystem::path dstPath
 
bool startFsync = false
 

Detailed Description

Write files at the given path

Member Function Documentation

◆ createDirectory()

void nix::RestoreSink::createDirectory ( const CanonPath & path)
overridevirtual

◆ createRegularFile()

void nix::RestoreSink::createRegularFile ( const CanonPath & path,
std::function< 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::RestoreSink::createSymlink ( const CanonPath & path,
const std::string & target )
overridevirtual

The documentation for this struct was generated from the following files: