ended9월 8일· 1 sources

Atomic writes — how tempfile + os.replace prevent corrupted JSON

Why it matters

What happens if the power cuts out while a process is writing to a config file? Or if antivirus software on Windows briefly locks a file mid-write? If you naively overwrite a file with open(path, 'w')...

1
Sources
+0
24h
Growth
13d
Active

Sources

Related Issues