Skip to content

Commit cd39143

Browse files
committed
chore: add windows cfg in read_dir, for use_native_path
1 parent 0fd6c4d commit cd39143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use imp::{
6767

6868
pub fn read_dir(path: &Path) -> io::Result<ReadDir> {
6969
#[cfg(not(windows))]
70-
return imp::remove_dir_all(path);
70+
return imp::readdir(path);
7171
#[cfg(windows)]
7272
with_native_path(path, &imp::readdir)
7373
}

0 commit comments

Comments
 (0)