mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'amakeev/pm'
This commit is contained in:
@@ -411,6 +411,11 @@ public class VfsUtilCore {
|
||||
return VirtualFileManager.constructUrl(URLUtil.FILE_PROTOCOL, path);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static String fileToUrl(@NotNull File file) {
|
||||
return pathToUrl(FileUtil.toSystemIndependentName(file.getPath()));
|
||||
}
|
||||
|
||||
public static List<File> virtualToIoFiles(@NotNull Collection<? extends VirtualFile> files) {
|
||||
return ContainerUtil.map2List(files, file -> virtualToIoFile(file));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user