forked from OpenBoard-org/OpenBoard
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
OpenBoard-org/OpenBoard
#1204Labels
Description
As mentioned in OpenBoard-org#1167 (comment), symlinks do not work within the library. I just made a quick check and found:
- When building the library palette, the file system is scanned in
UBFeaturesController::fileSystemScan(). - This used the function
UBFileSystemUtils::allElementsInDirectory():
OpenBoard/src/frameworks/UBFileSystemUtils.cpp
Lines 247 to 254 in 80fb7dd
QFileInfoList UBFileSystemUtils::allElementsInDirectory(const QString& pDirPath) { QDir dir = QDir(pDirPath); dir.setFilter(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot | QDir::NoSymLinks); dir.setSorting(QDir::DirsFirst); return QFileInfoList(dir.entryInfoList()); } - Here symlinks are explicitly excluded.
But why? That line in the code dates back to 2011 and was taken from OpenSankore and never modified. Was it intentionally for some specific reason? Analyze this and find out whether we could just remove this flag.
Reactions are currently unavailable