1
0
mirror of https://github.com/therootcompany/vfscopy synced 2025-02-17 22:18:14 +00:00
2020-10-23 14:29:09 -06:00
2020-10-23 13:55:37 -06:00
2020-10-23 14:29:09 -06:00
2020-10-23 13:53:09 -06:00
2020-10-23 14:29:09 -06:00
2020-10-23 14:29:09 -06: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)
}
Description
Recursively copy Go virtual file systems, such as gobindata, vfsgen, and http.FileSystem.
Readme MIT 54 KiB
Languages
Go 100%