Skip to content

Commit 05de5c9

Browse files
facchinmcmaglie
authored andcommitted
Follow symlinks when saving sketch
Fixes #8535
1 parent a87024d commit 05de5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-core/src/processing/app/BaseNoGui.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ static public void saveFile(String str, File file) throws IOException {
893893
PApplet.saveStrings(temp, strArray);
894894

895895
try {
896-
file = file.getCanonicalFile();
896+
file = file.toPath().toRealPath().toFile().getCanonicalFile();
897897
} catch (IOException e) {
898898
}
899899

0 commit comments

Comments
 (0)