Atomic
๐ค AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
provide.foundation.file.operations.detectors.atomic
¶
Atomic operation detectors.
Classes¶
AtomicOperationDetector
¶
Detects atomic file operations like safe writes and atomic saves.
Functions¶
detect_atomic_save
¶
Detect atomic save pattern (write to temp file, then rename).
Common pattern: create temp -> write temp -> rename temp to target
Source code in provide/foundation/file/operations/detectors/atomic.py
detect_safe_write
¶
Detect safe write pattern (backup original, write new, cleanup).
Common pattern: create backup -> modify original OR rename original to backup -> create new