I somehow can't use folder aliases on OSX to redirect file locations.
This is the code (which works on Windows):
File subDirectory = currentWorkDirectory.getChildFile(getIdentifier(dir)); jassert(subDirectory.exists()); if(subDirectory.isDirectory()) { return subDirectory; } else if (subDirectory.isSymbolicLink()) { return subDirectory.getLinkedTarget(); } else { const String fileExtension = subDirectory.getFileExtension(); jassertfalse; return File::nonexistent; }
Everytime I use this with a folder alias, the third condition is met and the assertion is hit (with an empty fileExtension).
It works on Windows (with folder shortcuts).
The file (the alias as well as the linked target) clearly exist (otherwise the assertion in line 2 would pop up).