We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ad48a commit 6af6f90Copy full SHA for 6af6f90
truffle/src/main/java/org/jruby/truffle/nodes/core/FileNodes.java
@@ -47,7 +47,13 @@ public AbsolutePathNode(AbsolutePathNode prev) {
47
public RubyString absolutePath(RubyString path) {
48
notDesignedForCompilation();
49
50
- return getContext().makeString(new File(path.toString()).getAbsolutePath());
+ String absolute = new File(path.toString()).getAbsolutePath();
51
+
52
+ if (getContext().isRunningOnWindows()) {
53
+ absolute = absolute.replace('\\', '/');
54
+ }
55
56
+ return getContext().makeString(absolute);
57
}
58
59
0 commit comments