Cleans up the temporary directories if they exist.
(&self)
| 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. |
no test coverage detected