From fccc89de47a3ed5fc576f28f7f02b1111a59c0c4 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Wed, 6 Oct 2021 11:34:14 +0200 Subject: refactor: move repo and delta in their own package --- tar.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tar.go') diff --git a/tar.go b/tar.go index feb3b34..02b8957 100644 --- a/tar.go +++ b/tar.go @@ -6,9 +6,10 @@ import ( "os" "github.com/n-peugnet/dna-backup/logger" + "github.com/n-peugnet/dna-backup/repo" ) -func streamFilesTar(files []File, stream io.WriteCloser) { +func streamFilesTar(files []repo.File, stream io.WriteCloser) { tarStream := tar.NewWriter(stream) for _, f := range files { file, err := os.Open(f.Path) -- cgit v1.2.3