|
std::optional< const std::string > | nar |
|
GetNarBytes | getNarBytes |
|
NarMember | root |
|
const size_t | number |
|
std::string | displayPrefix |
|
std::string | displaySuffix |
|
std::optional< std::string > | fingerprint |
|
|
enum | Type {
tRegular
, tSymlink
, tDirectory
, tChar
,
tBlock
, tSocket
, tFifo
, tUnknown
} |
|
typedef std::optional< Type > | DirEntry |
|
typedef std::map< std::string, DirEntry > | DirEntries |
|
◆ maybeLstat()
std::optional< Stat > nix::NarAccessor::maybeLstat |
( |
const CanonPath & | path | ) |
|
|
inlineoverridevirtual |
◆ readDirectory()
DirEntries nix::NarAccessor::readDirectory |
( |
const CanonPath & | path | ) |
|
|
inlineoverridevirtual |
◆ readFile()
std::string nix::NarAccessor::readFile |
( |
const CanonPath & | path | ) |
|
|
inlineoverridevirtual |
Return the contents of a file as a string.
- Note
- Unlike Unix, this method should not follow symlinks. Nix by default wants to manipulate symlinks explicitly, and not implictly follow them, as they are frequently untrusted user data and thus may point to arbitrary locations. Acting on the targets targets of symlinks should only occasionally be done, and only with care.
Reimplemented from nix::SourceAccessor.
◆ readLink()
std::string nix::NarAccessor::readLink |
( |
const CanonPath & | path | ) |
|
|
inlineoverridevirtual |
The documentation for this struct was generated from the following file:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libstore/nar-accessor.cc