Skip to content

Commit 3f773fa

Browse files
committed
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>
1 parent 451b7b6 commit 3f773fa

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

library/std/src/sys/fs/uefi.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::fs::TryLockError;
66
use crate::hash::Hash;
77
use crate::io::{self, BorrowedCursor, IoSlice, IoSliceMut, SeekFrom};
88
use crate::path::{Path, PathBuf};
9-
pub use crate::sys::fs::common::Dir;
9+
pub use crate::sys::fs::common::{Dir, remove_dir_all};
1010
use crate::sys::pal::{helpers, unsupported};
1111
use crate::sys::time::SystemTime;
1212

@@ -446,10 +446,6 @@ pub fn rmdir(p: &Path) -> io::Result<()> {
446446
}
447447
}
448448

449-
pub fn remove_dir_all(_path: &Path) -> io::Result<()> {
450-
unsupported()
451-
}
452-
453449
pub fn exists(path: &Path) -> io::Result<bool> {
454450
let f = uefi_fs::File::from_path(path, r_efi::protocols::file::MODE_READ, 0);
455451
match f {

0 commit comments

Comments
 (0)