mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 21:37:33 +00:00
Remove containers from file name in grid view
What a strange bug to happen
This commit is contained in:
parent
933f98d2c3
commit
d7b8b230ef
@ -153,7 +153,7 @@ fn details_view(options: &Options, columns: &Vec<Column>, files: Vec<&File>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if num == columns.len() - 1 {
|
if num == columns.len() - 1 {
|
||||||
print!("{}", row.get(num));
|
print!("{}", row[num]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let padding = column_widths[num] - field_widths[num];
|
let padding = column_widths[num] - field_widths[num];
|
||||||
|
@ -32,7 +32,7 @@ pub struct File<'a> {
|
|||||||
impl<'a> File<'a> {
|
impl<'a> File<'a> {
|
||||||
pub fn from_path(path: &'a Path, parent: &'a Dir) -> IoResult<File<'a>> {
|
pub fn from_path(path: &'a Path, parent: &'a Dir) -> IoResult<File<'a>> {
|
||||||
let v = path.filename().unwrap(); // fails if / or . or ..
|
let v = path.filename().unwrap(); // fails if / or . or ..
|
||||||
let filename = String::from_utf8(v.to_vec()).to_string();
|
let filename = String::from_utf8(v.to_vec()).unwrap();
|
||||||
|
|
||||||
// Use lstat here instead of file.stat(), as it doesn't follow
|
// Use lstat here instead of file.stat(), as it doesn't follow
|
||||||
// symbolic links. Otherwise, the stat() call will fail if it
|
// symbolic links. Otherwise, the stat() call will fail if it
|
||||||
|
Loading…
Reference in New Issue
Block a user