1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-10 11:25:04 -05:00

FAIL *facepalm*

This commit is contained in:
Reinhard Pointner 2016-12-06 00:46:47 +09:00
parent d4624fb47a
commit 9ab1f33ed1

View File

@ -320,6 +320,10 @@ public final class FileUtilities {
public static String getName(File file) {
if (file == null)
return null;
if (file.isDirectory())
return file.getName();
if (file.getName().isEmpty() || UNC_PREFIX.equals(file.getParent()))
return getFolderName(file);