mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
[updater] restoring platform-independent separators in relative paths
(not critical to the patches, but makes tests green on Windows) GitOrigin-RevId: 3b2c0d6381c56b114974b95d7f7be5181f0172bd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fbfbe2258f
commit
821428abcf
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user