Skip to content

Commit ead51e4

Browse files
committed
filesystem_type: java: use absolute path
1 parent 810cd13 commit ead51e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

+stdlib/+java/filesystem_type.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
end
1515

1616
try
17-
t = char(java.nio.file.Files.getFileStore(javaPathObject(file)).type);
17+
% Java 1.8 benefits from absolute path, especially on Windows
18+
t = char(java.nio.file.Files.getFileStore(javaAbsolutePath(file)).type);
1819
catch e
1920
javaException(e)
2021
end

0 commit comments

Comments
 (0)