Skip to content

Commit

Permalink
Merge pull request kyoheiu#287 from kyoheiu/feature/symlink-dir
Browse files Browse the repository at this point in the history
Show items linked to directory in the directory section
  • Loading branch information
kyoheiu authored Mar 2, 2024
2 parents 22814b5 + be1b927 commit b1e69d6
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 @@ -1207,7 +1207,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 b1e69d6

Please sign in to comment.