Skip to content

Conversation

flohw
Copy link

@flohw flohw commented Jul 11, 2025

As mentioned in #155, this patch fixes the case when a symbolic link is listed.

It follows the link and calls preview recursively with the real path.
The drawback is that the real file or directory name will be printed out instead of the symlink.
image

The other solution I could provide is to return the same array as the dir case but with another html value to distinguish link from a standard dir.

The only caution I see is an infiniteloop of link, but this would be due to user error on its link rather than the code itself.

@flohw
Copy link
Author

flohw commented Jul 11, 2025

Updated to treat link as a specific case and distinguish from a real folder.

image

@flohw
Copy link
Author

flohw commented Jul 11, 2025

Final touch to show where the link goes.

image

@flohw
Copy link
Author

flohw commented Jul 11, 2025

@artgris I think the PR is ready. 🙂

Let me know if you have some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant