1
0
mirror of https://github.com/therootcompany/vfscopy synced 2025-12-24 14:08: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, Works with any file system that implements http.FileSystem,
including `vfsgen`, `fileb0x`, `gobindata` and most others. including `vfsgen`, `fileb0x`, `gobindata` and most others.
# GoDoc ## Example: native file system (os)
See <https://pkg.go.dev/git.rootprojects.org/root/vfscopy>.
## Examples
### (Native) File System
```go ```go
httpfs := http.Dir("/tmp/public/") 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. **Note**: `vfsgen` does not support symlinks or file permissions.