mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user