Skip to content

Commit b587907

Browse files
committed
Add symlink support for Windows
Fixes #6893
1 parent 15a9020 commit b587907

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arduino-core/src/processing/app/windows/Platform.java

+2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ public List<File> preUninstallScripts(File folder) {
213213
}
214214

215215
public void symlink(File something, File somewhere) throws IOException, InterruptedException {
216+
Process process = Runtime.getRuntime().exec(new String[]{"mklink", somewhere.getAbsolutePath(), something.toString()}, null, somewhere.getParentFile());
217+
process.waitFor();
216218
}
217219

218220
@Override

0 commit comments

Comments
 (0)