From 821428abcf63698e0c019dd373fe3e3fe54a4e5e Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 30 Jan 2020 15:24:50 +0100 Subject: [PATCH] [updater] restoring platform-independent separators in relative paths (not critical to the patches, but makes tests green on Windows) GitOrigin-RevId: 3b2c0d6381c56b114974b95d7f7be5181f0172bd --- updater/src/com/intellij/updater/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater/src/com/intellij/updater/Utils.java b/updater/src/com/intellij/updater/Utils.java index beabbb30077b..a83c551c4073 100644 --- a/updater/src/com/intellij/updater/Utils.java +++ b/updater/src/com/intellij/updater/Utils.java @@ -280,14 +280,14 @@ public class Utils { @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { if (dir != root) { - result.add(root.relativize(dir).toString() + '/'); + result.add(root.relativize(dir).toString().replace('\\', '/') + '/'); } return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { - result.add(root.relativize(file).toString()); + result.add(root.relativize(file).toString().replace('\\', '/')); return FileVisitResult.CONTINUE; } });