package renameio
import "github.com/google/renameio"
Package renameio provides a way to atomically create or replace a file or symbolic link.
Caveat: this package requires the file system rename(2) implementation to be atomic. Notably, this is not the case when using NFS with multiple clients: https://stackoverflow.com/a/41396801
Index ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
maybe | Package maybe provides a way to atomically create or replace a file, if technically possible. |
- Version
- v1.0.1 (latest)
- Published
- Apr 6, 2021
- Platform
- windows/amd64
- Last checked
- 6 hours ago –
Tools for package owners.