mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
ls: make path platform independent
This commit is contained in:
parent
2c130ae7c0
commit
685493f72b
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ use crate::common::util::*;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
use self::regex::Regex;
|
use self::regex::Regex;
|
||||||
|
|
||||||
|
use std::path::Path;
|
||||||
use std::thread::sleep;
|
use std::thread::sleep;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
|
@ -1323,7 +1324,7 @@ fn test_ls_directory() {
|
||||||
at.mkdir("some_dir");
|
at.mkdir("some_dir");
|
||||||
at.symlink_dir("some_dir", "sym_dir");
|
at.symlink_dir("some_dir", "sym_dir");
|
||||||
|
|
||||||
at.touch("some_dir/nested_file");
|
at.touch(Path::new("some_dir").join("nested_file").to_str().unwrap());
|
||||||
|
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
|
@ -1419,7 +1420,7 @@ fn test_ls_deref_command_line_dir() {
|
||||||
at.mkdir("some_dir");
|
at.mkdir("some_dir");
|
||||||
at.symlink_dir("some_dir", "sym_dir");
|
at.symlink_dir("some_dir", "sym_dir");
|
||||||
|
|
||||||
at.touch("some_dir/nested_file");
|
at.touch(Path::new("some_dir").join("nested_file").to_str().unwrap());
|
||||||
|
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue