Skip to content

feat: allow symlinks in library#1204

Open
letsfindaway wants to merge 1 commit intoOpenBoard-org:devfrom
letsfindaway:feat-library-symlinks
Open

feat: allow symlinks in library#1204
letsfindaway wants to merge 1 commit intoOpenBoard-org:devfrom
letsfindaway:feat-library-symlinks

Conversation

@letsfindaway
Copy link
Collaborator

This PR addresses a small remark in #1167 (comment): It is currently not possible to use symlinks within the library folders, e.g. for images, video, audio or interactive content.

When using symlinks, there is a risk to create cyclic or duplicate structures . This might have been the reason to exclude symlinks when scanning the file system for such features.

This PR handles symlinks properly, still avoiding cacles and duplicates:

  • return symlinks in allElementsInDirectory
  • use a common file system walker for counting and scanning
  • skip symlinks leading to duplicate or recursive scans
  • remove obsolete non-threaded functions

See also letsfindaway#199

@letsfindaway letsfindaway force-pushed the feat-library-symlinks branch from f0cc1af to cdc3b7e Compare March 13, 2025 07:11
@letsfindaway letsfindaway force-pushed the feat-library-symlinks branch from cdc3b7e to 1b98018 Compare August 3, 2025 12:24
@letsfindaway letsfindaway linked an issue Oct 21, 2025 that may be closed by this pull request
@letsfindaway letsfindaway force-pushed the feat-library-symlinks branch from 1b98018 to 2af43ad Compare January 30, 2026 10:36
@kaamui
Copy link
Member

kaamui commented Jan 30, 2026

I'm still quite afraid of what the potential impact in performances could be in a distant-storage context.

In local context, did you notice during your tests any change regarding execution time of the scanning ?

- return symlinks in allElementsInDirectory
- use a common file system walker for counting and scanning
- skip symlinks leading to duplicate or recursive scans
- remove obsolete non-threaded functions
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.

[Analyze] Symlinks in library

2 participants