Expand description
Atomic file operations with cross-platform support (FR-FS)
This module provides atomic file write operations with:
- Temporary file creation with fsync
- Atomic rename (same filesystem)
- Windows rename retry with exponential backoff (≤ 250ms total)
- Cross-filesystem fallback (copy→fsync→replace)
- Warning tracking for retries and fallbacks
Structs§
- Atomic
Write Result - Result of an atomic write operation
Functions§
- read_
file_ with_ crlf_ tolerance - Read a file with CRLF tolerance (FR-FS-005)
- write_
file_ atomic - Atomically write content to a file using temp file + fsync + rename