Skip to content

Commit

Permalink
show symlink target's path, not just name
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed May 1, 2023
1 parent 26a62b3 commit 9e969d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/tree/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl Node {

/// Returns the file name of the symlink target if [Node] represents a symlink.
pub fn symlink_target_file_name(&self) -> Option<&OsStr> {
self.symlink_target_path().and_then(Path::file_name)
self.symlink_target_path().map(Path::as_os_str)
}

/// Returns reference to underlying [`FileType`].
Expand Down

0 comments on commit 9e969d7

Please sign in to comment.