MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / cleanup

Method cleanup

crates/cargo-lambda-new/src/template.rs:150–155  ·  view source on GitHub ↗

Cleans up the temporary directories if they exist.

(&self)

Source from the content-addressed store, hash-verified

148
149 /// Cleans up the temporary directories if they exist.
150 pub(crate) fn cleanup(&self) {
151 match self {
152 Self::TempDir((tmp, _)) => cleanup_tmp_dir(tmp.path()),
153 Self::LocalDir(_) => {}
154 }
155 }
156
157 /// Returns the path to the directory containing the CargoLambda.toml configuration file.
158 /// If the file exists at the root level, returns the root path.

Callers 1

new_projectFunction · 0.80

Calls 2

cleanup_tmp_dirFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected