mirror of
https://github.com/therootcompany/vfscopy
synced 2025-02-17 22:18:14 +00:00
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)
}
Languages
Go
100%