FAIL *facepalm*

This commit is contained in:
Reinhard Pointner 2016-12-06 00:46:47 +09:00
parent d4624fb47a
commit 9ab1f33ed1
1 changed files with 4 additions and 0 deletions

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);