std: sys: fs: uefi: Implement remove_dir_all

- Using the implementation from sys::fs::common since UEFI does not have
  a built-in for this functionality.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This commit is contained in:
Ayush Singh
2025-12-31 12:29:01 +05:30
parent 451b7b6c77
commit 3f773fac3b
+1 -5
View File
@@ -6,7 +6,7 @@
use crate::hash::Hash;
use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut, SeekFrom};
use crate::path::{Path, PathBuf};
pub use crate::sys::fs::common::Dir;
pub use crate::sys::fs::common::{Dir, remove_dir_all};
use crate::sys::pal::{helpers, unsupported};
use crate::sys::time::SystemTime;
@@ -446,10 +446,6 @@ pub fn rmdir(p: &Path) -> io::Result<()> {
}
}
pub fn remove_dir_all(_path: &Path) -> io::Result<()> {
unsupported()
}
pub fn exists(path: &Path) -> io::Result<bool> {
let f = uefi_fs::File::from_path(path, r_efi::protocols::file::MODE_READ, 0);
match f {