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

Method disable

atomic-cli/src/commands/clone/helpers.rs:281–283  ·  view source on GitHub ↗

Disable cleanup. Call this when the operation succeeds and you don't want the directory to be removed. # Example ```rust use atomic::commands::clone::helpers::CleanupGuard; use std::path::PathBuf; let guard = CleanupGuard::new(PathBuf::from("/tmp/test-repo")); guard.disable(); assert!(guard.is_disabled()); ```

(mut self)

Source from the content-addressed store, hash-verified

279 /// assert!(guard.is_disabled());
280 /// ```
281 pub fn disable(mut self) {
282 self.enabled = false;
283 }
284
285 /// Check if cleanup has been disabled.
286 pub fn is_disabled(&self) -> bool {

Callers 3

run_asyncMethod · 0.80

Calls

no outgoing calls

Tested by 2