* can't test drives that don't exist for being a folder or not
This commit is contained in:
parent
4fcc3def80
commit
5abb1f7abe
@ -247,7 +247,7 @@ public final class FileUtilities {
|
||||
|
||||
|
||||
public static String getName(File file) {
|
||||
if (file.isDirectory())
|
||||
if (file.getName().isEmpty())
|
||||
return getFolderName(file);
|
||||
|
||||
return getNameWithoutExtension(file.getName());
|
||||
|
Loading…
Reference in New Issue
Block a user