mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RUBY-25284 Review adjustments
- Added LOG warning to clean up local cache - Used real mount directory instead of default one IDEA-CR-56841 GitOrigin-RevId: 5fac48abaa84e753bfd0b42c8b9d9570b9cf28bf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
43a8df27da
commit
9aba3bf6bd
@@ -341,7 +341,7 @@ public class WSLDistribution {
|
||||
*/
|
||||
@Nullable
|
||||
public String getWindowsPath(@NotNull String wslPath) {
|
||||
return WSLUtil.getWindowsPath(wslPath, myDescriptor.getMntRoot());
|
||||
return WSLUtil.getWindowsPath(wslPath, getMntRoot());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -350,11 +350,19 @@ public class WSLDistribution {
|
||||
@Nullable
|
||||
public String getWslPath(@NotNull String windowsPath) {
|
||||
if (FileUtil.isWindowsAbsolutePath(windowsPath)) { // absolute windows path => /mnt/disk_letter/path
|
||||
return myDescriptor.getMntRoot() + convertWindowsPath(windowsPath);
|
||||
return getMntRoot() + convertWindowsPath(windowsPath);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see WslDistributionDescriptor#getMntRoot()
|
||||
*/
|
||||
@NotNull
|
||||
public final String getMntRoot(){
|
||||
return myDescriptor.getMntRoot();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param windowsAbsolutePath properly formatted windows local absolute path: {@code drive:\path}
|
||||
* @return windows path converted to the linux path according to wsl rules: {@code c:\some\path} => {@code c/some/path}
|
||||
|
||||
Reference in New Issue
Block a user