MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / remove_firedbg_dir

Function remove_firedbg_dir

command/src/main.rs:597–607  ·  view source on GitHub ↗
(workspace: &Workspace)

Source from the content-addressed store, hash-verified

595}
596
597async fn remove_firedbg_dir(workspace: &Workspace) -> Result<()> {
598 let firedbg_directory = &workspace.get_firedbg_dir();
599 let firedbg_dir = Path::new(firedbg_directory);
600 if firedbg_dir.exists() {
601 remove_dir_all(firedbg_dir)
602 .await
603 .with_context(|| format!("Fail to delete directory: `{firedbg_directory}`"))?;
604 console::status("Cleaning", "FireDBG resources");
605 }
606 Ok(())
607}
608
609async fn re_create_firedbg_folder(workspace: &Workspace) -> Result<()> {
610 let firedbg_directory = &workspace.get_firedbg_dir();

Callers 1

mainFunction · 0.85

Calls 2

statusFunction · 0.85
get_firedbg_dirMethod · 0.80

Tested by

no test coverage detected