pub fn write_atomic_no_create(path: &Path, bytes: &[u8]) -> Result<()>Expand description
Like write_atomic but does NOT create the parent directory: if the
parent is absent the write fails with the underlying NotFound error
instead of resurrecting it. Used for writes that must never recreate a
directory deleted out from under the writer — e.g. the supervisor’s
per-tick state save once its run dir has vanished (otherwise the
create_dir_all would rebuild the run dir ghost-file by ghost-file).