mirror of
https://github.com/veeso/termscp.git
synced 2026-07-27 18:11:06 +02:00
Push file_type to mode
This commit is contained in:
@@ -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)) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user