diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-12-26 17:36:42 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-12-26 17:36:42 +0100 |
commit | bcb006dddb72760e716d75e4f841e1aabb7d80d8 (patch) | |
tree | 8de2943669f86ba449186247b97171fc1746223c /src | |
parent | 476e08064f456573e3ee655775d6179d20344511 (diff) |
dir delete the dir and file delete the file
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index b6bb56d..9e831cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,8 +112,8 @@ fn main() -> anyhow::Result<()> { "vmlinuz", )?; - fs::remove_dir_all(file_name)?; - fs::remove_file(file_name.trim_end_matches(".tar.xz"))?; + fs::remove_file(file_name)?; + fs::remove_dir_all(file_name.trim_end_matches(".tar.xz"))?; Ok(()) } |