list: show symlink targets (for tar and zip)#934
Conversation
Signed-off-by: tommady <tommady@users.noreply.github.com>
There was a problem hiding this comment.
Hey sorry for the eager review but what if is_dir and symlink_target get collapsed into one field for an enum for file type.
Regular and Directory unit variants
Symlink tuple variant with PathBuf inside.
so you express in the type system that symlink_target can't be some while is_dir is true.
wdyt
No worries at all, I agree this is a great idea. |
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
|
Hey @marcospb19, I added support for hard links in the tar archive as well. This goes slightly beyond the scope of the original issue, so feel free to let me know if you’d prefer to keep the change more minimal. For now, I made hard links display the same way as symlinks because I wasn’t sure what the best visual distinction would be (I’m definitely not a UI/UX designer 🤪). Whenever you have time, I’d appreciate a review. Thanks! |
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
|
Wait I accidentally pushed something directly to main 🤦, let me solve this conflict. |
Signed-off-by: tommady <tommady@users.noreply.github.com>
marcospb19
left a comment
There was a problem hiding this comment.
Yay thanks
For the changelog I'll later figure out an automation later so you don't have to do this manually xD.
Merging
close: #932