mirror of
https://github.com/restic/restic.git
synced 2026-11-23 22:02:40 +00:00
Add exclude filter to archiver and 'backup' command
This commit is contained in:
1 parent
0d8bad273d
commit
7fd52f9f57
9 files changed
+179
-36
No files matched your search
+6
-1
@@ -1,6 +1,7 @@
|
||||
package restic_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
@@ -33,7 +34,11 @@ func TestWalkTree(t *testing.T) {
|
||||
// start filesystem walker
|
||||
fsJobs := make(chan pipe.Job)
|
||||
resCh := make(chan pipe.Result, 1)
|
||||
go pipe.Walk(dirs, done, fsJobs, resCh)
|
||||
|
||||
f := func(string, os.FileInfo) bool {
|
||||
return true
|
||||
}
|
||||
go pipe.Walk(dirs, f, done, fsJobs, resCh)
|
||||
|
||||
for {
|
||||
// receive fs job
|
||||
|
||||
Reference in new issue
Block a user