|
|
bool | operator== (const MemorySourceAccessor &) const noexcept=default |
|
bool | operator< (const MemorySourceAccessor &other) const noexcept |
| void | readFile (const CanonPath &path, Sink &sink, fun< void(uint64_t)> sizeCallback) override |
| bool | pathExists (const CanonPath &path) override |
| | Check whether a file exists at path.
|
| std::optional< Stat > | maybeLstat (const CanonPath &path) override |
| DirEntries | readDirectory (const CanonPath &path) override |
| std::string | readLink (const CanonPath &path) override |
| File * | open (const CanonPath &path, std::optional< File > create) |
| SourcePath | addFile (CanonPath path, std::string &&contents) |
| | Insert a new regular file into with the specified contents.
|
| std::string | readFile (const CanonPath &path) |
| std::string | readFile (const CanonPath &path) |
|
virtual Stat | lstat (const CanonPath &path) |
| virtual void | readDirectory (const CanonPath &dirPath, std::function< void(SourceAccessor &subdirAccessor, const CanonPath &subdirRelPath)> callback) |
|
virtual void | dumpPath (const CanonPath &path, Sink &sink, PathFilter &filter=defaultPathFilter) |
|
Hash | hashPath (const CanonPath &path, PathFilter &filter=defaultPathFilter, HashAlgorithm ha=HashAlgorithm::SHA256) |
| virtual std::optional< std::filesystem::path > | getPhysicalPath (const CanonPath &path) |
|
bool | operator== (const SourceAccessor &x) const |
|
auto | operator<=> (const SourceAccessor &x) const |
|
void | setPathDisplay (std::string displayPrefix, std::string displaySuffix="") |
| virtual std::string | showPath (const CanonPath &path) |
| | Render a human-readable representation of the accessor + path beneath it.
|
| CanonPath | resolveSymlinks (const CanonPath &path, SymlinkResolution mode=SymlinkResolution::Full) |
| virtual std::pair< CanonPath, std::optional< std::string > > | getFingerprint (const CanonPath &path) |
| virtual std::optional< time_t > | getLastModified () |
| virtual void | invalidateCache () |
An source accessor for an in-memory file system.