1
0
mirror of https://github.com/therootcompany/vfscopy synced 2025-12-24 05:58:42 +00:00

Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

View File

@ -7,13 +7,7 @@ to a native file system destination.
Works with any file system that implements http.FileSystem,
including `vfsgen`, `fileb0x`, `gobindata` and most others.
# GoDoc
See <https://pkg.go.dev/git.rootprojects.org/root/vfscopy>.
## Examples
### (Native) File System
## Example: native file system (os)
```go
httpfs := http.Dir("/tmp/public/")
@ -24,7 +18,7 @@ if err := vfscopy.CopyAll(vfs, ".", "/tmp/dst/"); nil != err {
}
```
### vfsgen (http.FileSystem)
## Example: vfsgen
**Note**: `vfsgen` does not support symlinks or file permissions.