3#include "source-accessor.hh"
12struct PosixSourceAccessor :
virtual SourceAccessor
19 const std::filesystem::path
root;
21 PosixSourceAccessor();
22 PosixSourceAccessor(std::filesystem::path &&
root);
33 std::function<
void(uint64_t)> sizeCallback)
override;
79 std::optional<struct stat> cachedLstat(
const CanonPath & path);
81 std::filesystem::path makeAbsPath(
const CanonPath & path);
Definition canon-path.hh:41
std::optional< SourceAccessor::Stat > maybeLstat() const
std::optional< std::filesystem::path > getPhysicalPath() const
std::string readFile() const
std::string readLink() const
SourceAccessor::DirEntries readDirectory() const
time_t mtime
Definition posix-source-accessor.hh:28
const std::filesystem::path root
Definition posix-source-accessor.hh:19
static SourcePath createAtRoot(const std::filesystem::path &path)
Definition posix-source-accessor.cc:21
Definition serialise.hh:20
Definition source-path.hh:22