Discover Packages
github.com/owainlewis/neo
internal
atomicfile
package
Version:
v0.6.2
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: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package atomicfile provides small helpers for crash-safe file replacement.
Write replaces path with b by writing a sibling temp file and renaming it
into place. Parent directories are created with dirPerm and the replacement
file is written with perm.
WritePreserveMode replaces path like Write, preserving the existing file's
permission bits when it exists and falling back to defaultPerm otherwise.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.