List files within /Volumes as media root (sandbox seems to give access to folder listings for that)

This commit is contained in:
Reinhard Pointner 2018-04-21 11:21:50 +07:00
parent 685482a5f8
commit 684402fe12
1 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@ public class ReleaseInfo {
if (isMacSandbox()) {
// Mac
for (File mediaRoot : getMediaRoots()) {
volumes.addAll(getChildren(mediaRoot, FOLDERS));
volumes.add(mediaRoot);
}
@ -421,7 +422,7 @@ public class ReleaseInfo {
public List<File> getMediaRoots() {
String roots = getProperty("folder.media.roots");
return COMMA.splitAsStream(roots).map(File::new).collect(toList());
return COMMA.splitAsStream(roots).map(File::new).filter(File::exists).collect(toList());
}
public String[] getSubtitleCategoryTags() {