https://github.com/creachadair/atomicfile
All-or-nothing file replacement using atomic renames.
https://github.com/creachadair/atomicfile
atomic-files go golang library
Last synced: 11 months ago
JSON representation
All-or-nothing file replacement using atomic renames.
- Host: GitHub
- URL: https://github.com/creachadair/atomicfile
- Owner: creachadair
- License: mit
- Created: 2019-06-10T13:29:47.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T18:02:15.000Z (about 1 year ago)
- Last Synced: 2025-05-12T19:22:29.595Z (about 1 year ago)
- Topics: atomic-files, go, golang, library
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# atomicfile
[](https://pkg.go.dev/github.com/creachadair/atomicfile)
[](https://github.com/creachadair/atomicfile/actions/workflows/go-presubmit.yml)
Package atomicfile implements all-or-nothing file replacement by staging output
to a temporary file adjacent to the specified target file, and renaming over
the target when the temporary is closed.