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

Compare commits

...

2 Commits

Author SHA1 Message Date
86a1bd4bec
update examples section 2020-10-23 20:37:41 -06:00
3567cd77c0 add GoDoc link 2020-10-23 17:51:46 -06:00

View File

@ -7,7 +7,13 @@ 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.
## Example: native file system (os) # GoDoc
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/")
@ -18,7 +24,7 @@ if err := vfscopy.CopyAll(vfs, ".", "/tmp/dst/"); nil != err {
} }
``` ```
## Example: vfsgen ### vfsgen (http.FileSystem)
**Note**: `vfsgen` does not support symlinks or file permissions. **Note**: `vfsgen` does not support symlinks or file permissions.