File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 22//
33// For the full copyright and license information, please view the LICENSE
44// file that was distributed with this source code.
5+
6+ #[ cfg( not( target_os = "redox" ) ) ]
7+ use std:: path:: Path ;
8+ #[ cfg( not( target_os = "redox" ) ) ]
59use std:: sync:: atomic:: { AtomicBool , Ordering } ;
610use std:: {
711 fs:: File ,
8- path:: { Path , PathBuf } ,
12+ path:: PathBuf ,
913 sync:: { Arc , LazyLock , Mutex } ,
1014} ;
1115
1216use tempfile:: TempDir ;
13- use uucore:: {
14- error:: { UResult , USimpleError } ,
15- show_error, translate,
16- } ;
17+ use uucore:: error:: UResult ;
18+ #[ cfg( not( target_os = "redox" ) ) ]
19+ use uucore:: { error:: USimpleError , show_error, translate} ;
1720
1821use crate :: { SortError , current_open_fd_count, fd_soft_limit} ;
1922
@@ -181,6 +184,7 @@ impl Drop for TmpDirWrapper {
181184
182185/// Remove the directory at `path` by deleting its child files and then itself.
183186/// Errors while deleting child files are ignored.
187+ #[ cfg( not( target_os = "redox" ) ) ]
184188fn remove_tmp_dir ( path : & Path ) -> std:: io:: Result < ( ) > {
185189 if let Ok ( read_dir) = std:: fs:: read_dir ( path) {
186190 for file in read_dir. flatten ( ) {
You can’t perform that action at this time.
0 commit comments