Skip to content

Commit

Permalink
Merge pull request #111 from stuartwdouglas/fix-slash
Browse files Browse the repository at this point in the history
Replace \ with / on windows
  • Loading branch information
cescoffier authored Jan 30, 2023
2 parents 5b0248a + b8a2e0d commit 286f8bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public Set<String> getResourcePaths(final String path) {
if (file != null) {
Path base = res.getResourceManagerRootPath();
if (base == null) {
resources.add(file.toString()); //not much else we can do here
resources.add(file.toString().replace('\\', '/')); //not much else we can do here
} else {
String filePath = file.toAbsolutePath().toString().substring(base.toAbsolutePath().toString().length());
filePath = filePath.replace('\\', '/'); //for windows systems
Expand Down

0 comments on commit 286f8bc

Please sign in to comment.