Skip to content

Commit

Permalink
Show items linked to directory in the directory section
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoheiu committed Mar 2, 2024
1 parent 85bad8e commit be1b927
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,14 @@ impl State {
}
match entry.file_type {
FileType::Directory => dir_v.push(entry),
FileType::File | FileType::Symlink => file_v.push(entry),
FileType::File => file_v.push(entry),
FileType::Symlink => {
if entry.symlink_dir_path.is_some() {
dir_v.push(entry);
} else {
file_v.push(entry);
}
}
}
}

Expand Down

0 comments on commit be1b927

Please sign in to comment.