mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed condition moved to FileUtil.isWindowsAbsolutePath (IDEA-CR-34321)
This commit is contained in:
@@ -346,12 +346,6 @@ public class WSLDistribution {
|
||||
@Nullable
|
||||
public String getWslPath(@NotNull String windowsPath) {
|
||||
if (FileUtil.isWindowsAbsolutePath(windowsPath)) { // absolute windows path => /mnt/disk_letter/path
|
||||
if (windowsPath.length() > 2) {
|
||||
char separator = windowsPath.charAt(2);
|
||||
if (separator != '/' && separator != '\\') {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return WSL_MNT_ROOT +
|
||||
Character.toLowerCase(windowsPath.charAt(0)) +
|
||||
FileUtil.toSystemIndependentName(windowsPath.substring(2));
|
||||
|
||||
Reference in New Issue
Block a user