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