mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-11 06:50:27 -04:00
little bit of documentation
This commit is contained in:
parent
3c0296d11e
commit
11b4034a9e
@ -90,11 +90,13 @@ public class FileFormat {
|
||||
|
||||
|
||||
public static String getName(File file) {
|
||||
if (!file.getName().isEmpty()) {
|
||||
return file.getName();
|
||||
} else {
|
||||
return file.toString();
|
||||
}
|
||||
String name = file.getName();
|
||||
|
||||
if (!name.isEmpty())
|
||||
return name;
|
||||
|
||||
// file might be a drive (only has a path, but no name)
|
||||
return file.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user