File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11function i = device(file )
22
33opt = java .nio .file .LinkOption .values();
4- p = javaPathObject(file );
5- i = java .nio .file .Files .getAttribute(p , ' unix:dev' , opt );
4+
5+ jp = javaPathObject(stdlib .absolute(file ));
6+ % Java 1.8 benefits from the absolute() for stability
7+ % seen on older Matlab versions on HPC
8+
9+ i = java .nio .file .Files .getAttribute(jp , ' unix:dev' , opt );
610
711i = uint64(i );
812end
Original file line number Diff line number Diff line change 1616n = " " ;
1717if ~strlength(file ), return , end
1818
19+ file = stdlib .absolute(file );
20+ % Java 1.8 benefits from absolute.
21+ % We only saw this issue with R2025a on windows-2025 GA runner image.
22+
1923try % #ok<TRYNC>
2024 opt = java .nio .file .LinkOption .values();
2125 n = string(java .nio .file .Files .getOwner(javaPathObject(file ), opt ));
Original file line number Diff line number Diff line change 1- function i = inode(p )
1+ function i = inode(file )
22
33opt = java .nio .file .LinkOption .values();
44
5- jp = javaPathObject(stdlib .absolute(p ));
5+ jp = javaPathObject(stdlib .absolute(file ));
66% Java 1.8 benefits from the absolute() for stability--it's not an issue
77% on every computer.
88
You can’t perform that action at this time.
0 commit comments