Fix log directory not being created, again..

This commit is contained in:
Matthew Penner
2020-08-24 20:22:19 -06:00
parent 9cd416611f
commit 9f27119044
2 changed files with 3 additions and 2 deletions

View File

@@ -574,7 +574,8 @@ func (fs *Filesystem) Copy(p string) error {
}
defer dest.Close()
if _, err := io.Copy(dest, source); err != nil {
buf := make([]byte, 1024*4)
if _, err := io.CopyBuffer(dest, source, buf); err != nil {
return errors.WithStack(err)
}