diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-06 11:34:14 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-06 11:34:14 +0200 |
commit | fccc89de47a3ed5fc576f28f7f02b1111a59c0c4 (patch) | |
tree | 9de36f7e6eab07c78d59428b2345aceab34df9cd /tar.go | |
parent | 9b9710511b0dbe51ac030ef908f9468103b0bd0a (diff) | |
download | dna-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.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |