mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: give '.' a file_type
This commit is contained in:
parent
361408cbe5
commit
eb3206737b
1 changed files with 7 additions and 1 deletions
|
@ -1284,7 +1284,13 @@ fn should_display(entry: &DirEntry, config: &Config) -> bool {
|
|||
fn enter_directory(dir: &PathData, config: &Config, out: &mut BufWriter<Stdout>) {
|
||||
let mut entries: Vec<_> = if config.files == Files::All {
|
||||
vec![
|
||||
PathData::new(dir.p_buf.join("."), None, Some(".".into()), config, false),
|
||||
PathData::new(
|
||||
dir.p_buf.clone(),
|
||||
Some(Ok(*dir.file_type().unwrap())),
|
||||
Some(".".into()),
|
||||
config,
|
||||
false,
|
||||
),
|
||||
PathData::new(dir.p_buf.join(".."), None, Some("..".into()), config, false),
|
||||
]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue