1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

Improved structure root detection

This commit is contained in:
Reinhard Pointner 2016-04-14 09:32:01 +00:00
parent 8ae4bed832
commit 3fd7d34647

View File

@ -78,6 +78,9 @@ class ExpressionFormatter implements MatchFormatter {
File structureRoot = getStructureRoot(source);
if (structureRoot != null) {
for (File f : listPath(parent)) {
if (isVolumeRoot(structureRoot)) {
break;
}
if (isStructureRoot(f)) {
structureRoot = structureRoot.getParentFile();
}