based on the issue below my understanding on symlink usage is it must be under the root media dir.
if a symlink is points to a directory outside of media dir then following of symlink is prohibited due to security issues.
is my summary of the problem correct?
a typical use case is when the extension of media dir is on a removable device like sd card. in this case it is not possible to fulfill the symlink requirement mentioned above.
it would be great to make this security constraint a switchable feature.
i think this is the relevant code snippet:
if not self._is_in_basedir(os.path.realpath(child_path)):
logger.debug(‘Ignoring symlink to outside base dir: %s’, uri)
thanks for answering