mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
Fix accessing 'toString path'
This commit is contained in:
parent
c0dd35a65f
commit
2d5cfca98b
7 changed files with 89 additions and 31 deletions
|
@ -224,6 +224,13 @@ public:
|
|||
|
||||
void registerAccessor(ref<InputAccessor> accessor);
|
||||
|
||||
/* Convert a path to a string representation of the format
|
||||
`/__virtual__/<accessor-number>/<path>`. */
|
||||
std::string encodePath(const SourcePath & path);
|
||||
|
||||
/* Decode a path encoded by `encodePath()`. */
|
||||
SourcePath decodePath(std::string_view s, PosIdx pos = noPos);
|
||||
|
||||
/* Allow access to a path. */
|
||||
void allowPath(const Path & path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue