directory || root drive || network share
This commit is contained in:
parent
ff659a3439
commit
cce075dc15
|
@ -322,11 +322,12 @@ public final class FileUtilities {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.isDirectory() || file.getName().isEmpty() || UNC_PREFIX.equals(file.getParent())) {
|
if (file.isFile()) {
|
||||||
return getFolderName(file);
|
return getNameWithoutExtension(file.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
return getNameWithoutExtension(file.getName());
|
// directory || root drive || network share
|
||||||
|
return getFolderName(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getFolderName(File file) {
|
public static String getFolderName(File file) {
|
||||||
|
|
Loading…
Reference in New Issue