1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

ls: make path platform independent

This commit is contained in:
Terts Diepraam 2021-04-16 18:27:36 +02:00
parent 2c130ae7c0
commit 685493f72b

View file

@ -5,6 +5,7 @@ use crate::common::util::*;
extern crate regex;
use self::regex::Regex;
use std::path::Path;
use std::thread::sleep;
use std::time::Duration;
@ -1323,7 +1324,7 @@ fn test_ls_directory() {
at.mkdir("some_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
.ucmd()
@ -1419,7 +1420,7 @@ fn test_ls_deref_command_line_dir() {
at.mkdir("some_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
.ucmd()