Struct atomicwrites::AtomicFile [] [src]

pub struct AtomicFile { /* fields omitted */ }

Methods

impl AtomicFile
[src]

[src]

Helper for writing to path in write-only mode.

If DisallowOverwrite is given, errors will be returned from self.write(...) if the file exists.

[src]

[src]

Get the target filepath.

[src]

Open a temporary file, call f on it (which is supposed to write to it), then move the file atomically to self.path.