FSfs.FS Chmod implements the same method as documented on sys.FS Link implements the same method as documented on sys.FS Lstat implements the same method as documented on sys.FS Mkdir implements the same method as documented on sys.FS OpenFile implements the same method as documented on sys.FS Readlink implements the same method as documented on sys.FS Rename implements the same method as documented on sys.FS Rmdir implements the same method as documented on sys.FS Stat implements the same method as documented on sys.FS String implements fmt.Stringer Symlink implements the same method as documented on sys.FS Unlink implements the same method as documented on sys.FS Utimens implements the same method as documented on sys.FS
*AdaptFS : github.com/tetratelabs/wazero/experimental/sys.FS
*AdaptFS : expvar.Var
*AdaptFS : fmt.Stringer
FSexperimentalsys.FS Chmod implements the same method as documented on sys.FS Link implements the same method as documented on sys.FS Lstat gets file status without following symbolic links.
# Errors
A zero Errno is success. The below are expected otherwise:
- ENOSYS: the implementation does not support this function.
- ENOENT: `path` doesn't exist.
# Notes
- This is like syscall.Lstat, except the `path` is relative to this
file system.
- This is like `lstat` in POSIX. See
https://pubs.opengroup.org/onlinepubs/9699919799/functions/lstat.html
- An fs.FileInfo backed implementation sets atim, mtim and ctim to the
same value.
- When the path is a symbolic link, the stat returned is for the link,
not the file it refers to. Mkdir implements the same method as documented on sys.FS OpenFile implements the same method as documented on sys.FS Readlink reads the contents of a symbolic link.
# Errors
A zero Errno is success. The below are expected otherwise:
- ENOSYS: the implementation does not support this function.
- EINVAL: `path` is invalid.
# Notes
- This is like syscall.Readlink, except the path is relative to this
filesystem.
- This is like `readlink` in POSIX. See
https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html
- On Windows, the path separator is different from other platforms,
but to provide consistent results to Wasm, this normalizes to a "/"
separator. Rename implements the same method as documented on sys.FS Rmdir implements the same method as documented on sys.FS Stat gets file status.
# Errors
A zero Errno is success. The below are expected otherwise:
- ENOSYS: the implementation does not support this function.
- ENOENT: `path` doesn't exist.
# Notes
- This is like syscall.Stat, except the `path` is relative to this
file system.
- This is like `stat` in POSIX. See
https://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html
- An fs.FileInfo backed implementation sets atim, mtim and ctim to the
same value.
- When the path is a symbolic link, the stat returned is for the file
it refers to. Symlink implements the same method as documented on sys.FS Unlink implements the same method as documented on sys.FS Utimens implements the same method as documented on sys.FS
*ReadFS : github.com/tetratelabs/wazero/experimental/sys.FS
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.