1
0
mirror of https://github.com/therootcompany/vfscopy synced 2026-05-19 11:33:53 +00:00
vfscopy/copy_test.go

20 lines
311 B
Go
Raw Normal View History

2020-10-23 13:53:09 -06:00
package vfscopy
import (
"testing"
)
func TestRecursiveCopy(t *testing.T) {
{
opts := Options{
OnSymlink: func (path string) SymlinkAction {
return Shallow
},
}
2020-10-23 13:55:37 -06:00
vfs := Dir("./fixtures/src/")
if err := Copy(vfs, ".", "/tmp/dst/", opts,); nil != err {
2020-10-23 13:53:09 -06:00
t.Fatalf("error: %v", err)
}
}
}