Discover Packages
github.com/getsarde/sarde
internal
atomicwrite
package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Aug 4, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package atomicwrite provides atomic file write operations via temp-file +
rename. It lives outside build/asset/plugin to avoid import cycles.
CopyFile atomically copies src to dst via streaming (no full-file buffering).
Parent directories are created as needed.
WriteFile atomically writes data to path via a uniquely-named temp file in
the same directory, then os.Rename over the target. Parent directories are
created as needed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.