mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-25 17:07:26 -04:00
Many small fixes [release]
This commit is contained in:
@@ -34,6 +34,19 @@ public class FileNames {
|
||||
return components.get(components.size() - 1);
|
||||
}
|
||||
|
||||
public static String getExtension(String file) {
|
||||
if (file == null || file.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var name = FileNames.getFileName(file);
|
||||
var split = file.split("\\.");
|
||||
if (split.length == 0) {
|
||||
return null;
|
||||
}
|
||||
return split[split.length - 1];
|
||||
}
|
||||
|
||||
public static String join(String... parts) {
|
||||
var joined = String.join("/", parts);
|
||||
return normalize(joined);
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ShellDialects {
|
||||
|
||||
@Override
|
||||
public boolean prioritizeLoading() {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user