Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
input-accessor.hh
Go to the documentation of this file.
1#pragma once
3
4
5#include <map>
6#include <optional>
7#include <string>
8
9namespace nix {
10
12{
13 enum Type {
14 tRegular, tSymlink, tDirectory,
23 };
24
25 struct Stat
26 {
27 Type type = tMisc;
28 //uint64_t fileSize = 0; // regular files only
29 bool isExecutable = false; // regular files only
30 };
31
32 typedef std::optional<Type> DirEntry;
33
34 typedef std::map<std::string, DirEntry> DirEntries;
35};
36
37}
Definition input-accessor.hh:26
Definition input-accessor.hh:12
Type
Definition input-accessor.hh:13
@ tMisc
Definition input-accessor.hh:22