forked from rosa/hakurei
internal/pkg: streaming archive reader/writer
This is much more robust and efficient than the simple buffering implementation for larger files. Allocations happen almost exclusively in WalkDir. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+1
-1
@@ -595,7 +595,7 @@ func main() {
|
||||
0400,
|
||||
); err != nil {
|
||||
return err
|
||||
} else if _, err = pkg.Flatten(
|
||||
} else if err = pkg.Write(
|
||||
os.DirFS(pathname.String()),
|
||||
".",
|
||||
f,
|
||||
|
||||
Reference in New Issue
Block a user