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

Method is_writable

atomic-core/src/output/traits.rs:330–332  ·  view source on GitHub ↗

Check if a path is writable. This can be used to skip files that should not be modified, such as those with special attributes or user-specified exclusions. # Arguments `path` - Relative path within the working copy # Returns `true` if the file can be written, `false` if it should be skipped.

(&self, _path: &str)

Source from the content-addressed store, hash-verified

328 ///
329 /// `true` if the file can be written, `false` if it should be skipped.
330 fn is_writable(&self, _path: &str) -> Result<bool, Self::Error> {
331 Ok(true)
332 }
333
334 /// Create a directory and all parent directories.
335 ///

Callers

nothing calls this directly

Implementers 3

traits.rsatomic-core/src/output/traits.rs
memory.rsatomic-core/src/output/memory.rs
mod.rsatomic-core/src/output/filesystem/mod.

Calls

no outgoing calls

Tested by

no test coverage detected