We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac2000 commit ea0dd17Copy full SHA for ea0dd17
+stdlib/+fileio/create_symlink.m
@@ -7,7 +7,7 @@
7
link (1,1) string
8
end
9
10
-if isMATLABReleaseOlderThan("R2024b")
+if ispc || isMATLABReleaseOlderThan("R2024b")
11
% import java.io.File
12
% import java.nio.file.Files
13
% ok = Files.createSymbolicLink(File(link).toPath(), File(target).toPath());
@@ -31,11 +31,14 @@
31
ok = stat == 0;
32
33
else
34
+% windows requires RunAsAdmin, so we don't use this on Windows
35
+% https://www.mathworks.com/help/releases/R2024b/matlab/ref/createsymboliclink.html
36
37
try
38
createSymbolicLink(link, target);
39
ok = true;
- catch
40
+ catch e
41
+ warning(e.message)
42
ok = false;
43
44
0 commit comments