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

Method is_writable

atomic-core/src/output/memory.rs:586–589  ·  view source on GitHub ↗
(&self, path: &str)

Source from the content-addressed store, hash-verified

584 type Writer = MemoryWriter;
585
586 fn is_writable(&self, path: &str) -> Result<bool, Self::Error> {
587 let non_writable = self.non_writable.borrow();
588 Ok(!non_writable.iter().any(|p| p == path))
589 }
590
591 fn create_dir_all(&self, path: &str) -> Result<(), Self::Error> {
592 self.ensure_directories(path);

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected