Remove temporary mount directory

This commit is contained in:
Jeremy Soller
2023-12-13 14:10:56 -07:00
parent f241649bba
commit ba2fc38a3f
+4
View File
@@ -321,6 +321,10 @@ pub fn with_redoxfs<D, T, F>(disk: D, password_opt: Option<&[u8]>, callback: F)
join_handle.join().unwrap();
if cfg!(not(target_os = "redox")) {
fs::remove_dir_all(&mount_path)?;
}
res
}