start of 'copy to'; more plumbing to support passing modification times through (#438)

This commit is contained in:
Michael Quigley
2023-12-01 12:36:06 -05:00
parent f40fd83b82
commit d955a77af7
6 changed files with 61 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ func (t *FilesystemTarget) recurse(path string, d fs.DirEntry, err error) error
}
func (t *FilesystemTarget) ReadStream(path string) (io.ReadCloser, error) {
return os.Open(path)
return os.Open(filepath.Join(t.cfg.Root, path))
}
func (t *FilesystemTarget) WriteStream(path string, stream io.Reader, mode os.FileMode) error {