1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

directory || root drive || network share

This commit is contained in:
Reinhard Pointner 2016-12-16 14:21:03 +08:00
parent ff659a3439
commit cce075dc15

View File

@ -322,11 +322,12 @@ public final class FileUtilities {
return null;
}
if (file.isDirectory() || file.getName().isEmpty() || UNC_PREFIX.equals(file.getParent())) {
return getFolderName(file);
if (file.isFile()) {
return getNameWithoutExtension(file.getName());
}
return getNameWithoutExtension(file.getName());
// directory || root drive || network share
return getFolderName(file);
}
public static String getFolderName(File file) {