aboutsummaryrefslogtreecommitdiff
path: root/tar.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-06 11:34:14 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-06 11:34:14 +0200
commitfccc89de47a3ed5fc576f28f7f02b1111a59c0c4 (patch)
tree9de36f7e6eab07c78d59428b2345aceab34df9cd /tar.go
parent9b9710511b0dbe51ac030ef908f9468103b0bd0a (diff)
downloaddna-backup-fccc89de47a3ed5fc576f28f7f02b1111a59c0c4.tar.gz
dna-backup-fccc89de47a3ed5fc576f28f7f02b1111a59c0c4.zip
refactor: move repo and delta in their own package
Diffstat (limited to 'tar.go')
-rw-r--r--tar.go3
1 files changed, 2 insertions, 1 deletions
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)