mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 21:50:58 +01:00
FSInputAccessor: Implement filtering
This commit is contained in:
parent
3ec83565b1
commit
38c665847a
2 changed files with 37 additions and 6 deletions
|
|
@ -44,7 +44,9 @@ struct InputAccessor
|
|||
PathFilter & filter = defaultPathFilter);
|
||||
};
|
||||
|
||||
ref<InputAccessor> makeFSInputAccessor(const Path & root);
|
||||
ref<InputAccessor> makeFSInputAccessor(
|
||||
const Path & root,
|
||||
std::optional<PathSet> && allowedPaths = {});
|
||||
|
||||
struct MemoryInputAccessor : InputAccessor
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue