Push file_type to mode

This commit is contained in:
ChristianVisintin
2020-11-29 15:05:21 +01:00
parent b43bbcfa7d
commit e3bf4602cc

View File

@@ -97,6 +97,7 @@ impl std::fmt::Display for FsEntry {
Some(_) => 'l', Some(_) => 'l',
None => 'd', None => 'd',
}; };
mode.push(file_type);
match dir.unix_pex { match dir.unix_pex {
None => mode.push_str("?????????"), None => mode.push_str("?????????"),
Some((owner, group, others)) => { Some((owner, group, others)) => {
@@ -185,6 +186,7 @@ impl std::fmt::Display for FsEntry {
Some(_) => 'l', Some(_) => 'l',
None => '-', None => '-',
}; };
mode.push(file_type);
match file.unix_pex { match file.unix_pex {
None => mode.push_str("?????????"), None => mode.push_str("?????????"),
Some((owner, group, others)) => { Some((owner, group, others)) => {
@@ -283,6 +285,7 @@ impl std::fmt::Display for FsEntry {
Some(_) => 'l', Some(_) => 'l',
None => 'd', None => 'd',
}; };
mode.push(file_type);
match dir.unix_pex { match dir.unix_pex {
None => mode.push_str("?????????"), None => mode.push_str("?????????"),
Some((owner, group, others)) => { Some((owner, group, others)) => {
@@ -365,6 +368,7 @@ impl std::fmt::Display for FsEntry {
Some(_) => 'l', Some(_) => 'l',
None => '-', None => '-',
}; };
mode.push(file_type);
match file.unix_pex { match file.unix_pex {
None => mode.push_str("?????????"), None => mode.push_str("?????????"),
Some((owner, group, others)) => { Some((owner, group, others)) => {