File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 55 ok = true ;
66catch e
77 switch e .identifier
8- case {' MATLAB:io:filesystem:symlink:FileExists' , ' MATLAB:io:filesystem:symlink:TargetNotFound' }, ok = false ;
8+ % Some Windows R2025a need admin perms, some don't
9+ case {' MATLAB:io:filesystem:symlink:FileExists' , ...
10+ ' MATLAB:io:filesystem:symlink:TargetNotFound' , ...
11+ ' MATLAB:io:filesystem:symlink:NeedsAdminPerms' }
12+ ok = false ;
913 otherwise , rethrow(e )
1014 end
1115end
Original file line number Diff line number Diff line change 8585
8686 switch functionName
8787 case ' create_symlink'
88- if stdlib .matlabOlderThan(' R2024b' ) || (ispc() && stdlib .matlabOlderThan(' R2025a' ))
88+ % Some Windows R2025a give error 'MATLAB:io:filesystem:symlink:NeedsAdminPerms'
89+ % 25.1.0.2973910 (R2025a) Update 1 gave this error for example.
90+ if stdlib .matlabOlderThan(' R2024b' ) || ispc()
8991 continue
9092 end
9193 case {' is_symlink' , ' read_symlink' }
You can’t perform that action at this time.
0 commit comments