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

Method disable

atomic-cli/src/commands/clone/helpers.rs:282–284  ·  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

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

Callers 3

run_asyncMethod · 0.80

Calls

no outgoing calls

Tested by 2