mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
List files within /Volumes as media root (sandbox seems to give access to folder listings for that)
This commit is contained in:
parent
684402fe12
commit
34d779faab
@ -226,7 +226,7 @@ public class ReleaseInfo {
|
|||||||
if (isMacSandbox()) {
|
if (isMacSandbox()) {
|
||||||
// Mac
|
// Mac
|
||||||
for (File mediaRoot : getMediaRoots()) {
|
for (File mediaRoot : getMediaRoots()) {
|
||||||
volumes.addAll(getChildren(mediaRoot, FOLDERS));
|
// volumes.addAll(getChildren(mediaRoot, FOLDERS));
|
||||||
volumes.add(mediaRoot);
|
volumes.add(mediaRoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ public class DropToUnlock extends JList<File> {
|
|||||||
File root = MediaDetection.getStructureRoot(file);
|
File root = MediaDetection.getStructureRoot(file);
|
||||||
|
|
||||||
// if structure root doesn't work just grab first existing parent folder
|
// if structure root doesn't work just grab first existing parent folder
|
||||||
if (root == null || root.getParentFile() == null || root.getName().isEmpty()) {
|
if (root == null || root.getName().isEmpty() || root.getParentFile() == null || root.getParentFile().getName().isEmpty()) {
|
||||||
for (File it : listPathTail(file, Integer.MAX_VALUE, true)) {
|
for (File it : listPathTail(file, Integer.MAX_VALUE, true)) {
|
||||||
if (it.isDirectory()) {
|
if (it.isDirectory()) {
|
||||||
return it;
|
return it;
|
||||||
|
Loading…
Reference in New Issue
Block a user