Skip to content

Commit d393049

Browse files
committed
create_symlink: .net backup
1 parent 025a133 commit d393049

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

+stdlib/create_symlink.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@
2626
% Matlab Java doesn't recognize the optional argument omitted.
2727
% see example/Filesystem.java for this working in plain Java.
2828
% see example/javaCreateSymbolicLink.m for a non-working attempt in Matlab.
29-
warning(e.identifier, "buildtool mex \n%s", e.message)
30-
ok = false;
29+
if stdlib.has_dotnet()
30+
System.IO.File.CreateSymbolicLink(link, target);
31+
ok = true;
32+
else
33+
ok = false;
34+
end
3135
case "Octave:undefined-function"
3236
err = symlink(target, link);
3337
ok = err == 0;

0 commit comments

Comments
 (0)