huynhsontung / Screenbox

LibVLC-based media player for the Universal Windows Platform
GNU General Public License v3.0
781 stars 34 forks source link

Symlink Scanning Support #398

Open D-Maxwell opened 4 days ago

D-Maxwell commented 4 days ago

Describe the bug It would seem that Screenbox lacks the ability to scour symlinks to directories ; which in the case of NT, would rather be "junctions to folders". (NT does seem to treat the two differently in some way that I remain unaware of, although Screenbox refuses to acknowledge the existence of either of those)

How To Reproduce Create a junction to any folder. Witness Screenbox's inability to consider the junction for its target's value.

Expected behavior I would be expecting the scanning to take potential symlinks into account and evaluate those to scan through their target location(s).

Screenshots image image

Environment

Additional context (note : this is unrelated to my initial guess, which had to do with the target directories residing in a separate drive from their pointers)

huynhsontung commented 2 days ago

Hello, symlinks are not supported by the current UWP capability. This is a platform restriction/limitation. The expected method of adding directories to your videos library is by using the "Add folder" button on the settings page or at the top of the Videos page to browse and select the directories you want to scan.

image

D-Maxwell commented 1 day ago

Hello, symlinks are not supported by the current UWP capability. This is a platform restriction/limitation.

That is certainly unfortunate. What is most odd is that I am aware of another UWP app --Files-- which is in fact able to, even if not recognising those as symlinks (or so it would seem, as the GUI lacks any information indicative of that), consider symlinks and junctions for their target folder in place of themselves.

I am mentioning this app in the hopes that whichever workaround they may have found could be implemented in ScreenBox.

huynhsontung commented 1 day ago

AFAIK Files is no longer an UWP app anymore. They have fully migrated to WinAppSDK/WinUI3 and extensively make use of Win32 APIs to get good files performance. Is there any benefit for using symlink in your libraries? Wouldn't it be the same to add the folder in the app instead?