MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / clear

Method clear

atomic-core/src/output/memory.rs:436–439  ·  view source on GitHub ↗

Clear all files and directories.

(&self)

Source from the content-addressed store, hash-verified

434
435 /// Clear all files and directories.
436 pub fn clear(&self) {
437 self.files.borrow_mut().clear();
438 self.non_writable.borrow_mut().clear();
439 }
440
441 /// Ensure all directories in a path exist.
442 fn ensure_directories(&self, path: &str) {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected