Skip to content

Commit

Permalink
fix windows better
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed May 22, 2024
1 parent 3e1f387 commit 14ca532
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ public void accept(Path path) throws IOException {
Files.copy(path, outFile, StandardCopyOption.REPLACE_EXISTING);
} else {
try {
String relativizedName = relativized.toString().replace('\\', '/');
String relativizedName = relativized.toString();
if (relativized.getFileSystem().getSeparator().equals("\\")) {
relativizedName = relativizedName.replace('\\', '/');
}
String internalName = relativizedName.substring(0, relativizedName.length() - 6);
byte[] bytes = Files.readAllBytes(path);
Map<String, byte[]> outputs = downgrader.downgrade(new AtomicReference<>(internalName), bytes, false, new Function<String, byte[]>() {
Expand Down

0 comments on commit 14ca532

Please sign in to comment.