Glossary term

What is atomic write? Meaning for developers

Writing to a temporary file and renaming it over the real file so readers see either the old file or the new one, never a half-written one.

Learn it properly · Node.js From ZeroLesson 2: Files, Paths and Buffersfs and fs/promises, paths, buffers and encodings, reading and writing safely, and watching files.

All Node.js From Zero terms

Related terms

← All glossary terms, A to Z