mirror of
https://github.com/therootcompany/vfscopy
synced 2025-12-24 05:58:42 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86a1bd4bec | |||
| 3567cd77c0 |
10
README.md
10
README.md
@ -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.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user