mirror of
https://github.com/NixOS/nix.git
synced 2025-11-23 10:49:36 +01:00
SourceAccessor::readFile(): Support reading into a sink
This commit is contained in:
parent
7a086a32bc
commit
57db3be9e4
5 changed files with 94 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ StorePath InputAccessor::fetchToStore(
|
|||
if (method == FileIngestionMethod::Recursive)
|
||||
dumpPath(path, sink, filter ? *filter : defaultPathFilter);
|
||||
else
|
||||
sink(readFile(path)); // FIXME: stream
|
||||
readFile(path, sink);
|
||||
});
|
||||
|
||||
auto storePath =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue