AJ ONeal 3e0b2965b4 | ||
---|---|---|
fixtures | ||
internal/tools | ||
vendor | ||
.gitignore | ||
README.md | ||
copy.go | ||
copy_test.go | ||
go.mod | ||
go.sum | ||
options.go | ||
vfs.go |
README.md
vfscopy
Copy a Virtual FileSystem, such as http.FileSystem, recursively to a native file system destination.
httpfs := http.Dir("/tmp/public/")
vfs := vfscopy.NewVFS(httpfs)
if err := Copy(vfs, ".", "/tmp/dst/"); nil != err {
fmt.Fprintf(os.Stderr, "couldn't copy vfs: %v\n", err)
}
Test
go generate ./...
go test ./...