Merge branch 'amakeev/pm'

This commit is contained in:
Anton Makeev
2019-03-19 13:00:58 +01:00
@@ -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));
}