Skip to content

Commit 270692d

Browse files
authored
Rollup merge of rust-lang#150533 - uefi-fs-rmdirall, r=ChrisDenton
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. @rustbot label +O-UEFI
2 parents ab5940a + 3f773fa commit 270692d

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

@@ -489,10 +489,6 @@ pub fn rmdir(p: &Path) -> io::Result<()> {
489489
}
490490
}
491491

492-
pub fn remove_dir_all(_path: &Path) -> io::Result<()> {
493-
unsupported()
494-
}
495-
496492
pub fn exists(path: &Path) -> io::Result<bool> {
497493
let f = uefi_fs::File::from_path(path, r_efi::protocols::file::MODE_READ, 0);
498494
match f {

0 commit comments

Comments
 (0)