diff --git a/+stdlib/is_absolute.m b/+stdlib/is_absolute.m index 03605d7..c9e7559 100644 --- a/+stdlib/is_absolute.m +++ b/+stdlib/is_absolute.m @@ -1,10 +1,12 @@ function isabs = is_absolute(p) +%% IS_ABSOLUTE +% is path absolute? +% +% https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/io/File.html#isAbsolute() arguments p (1,1) string end isabs = java.io.File(p).toPath().isAbsolute(); -% alternative -% https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/File.html#isAbsolute() end diff --git a/+stdlib/is_writable.m b/+stdlib/is_writable.m index cc98f04..1dceb24 100644 --- a/+stdlib/is_writable.m +++ b/+stdlib/is_writable.m @@ -1,6 +1,7 @@ function ok = is_writable(file) -%% is_writable is file writable -% https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/file/Files.html#isWritable(java.nio.file.Path) +%% is_writable +% is path writable +% https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/nio/file/Files.html#isWritable(java.nio.file.Path) arguments file (1,1) string diff --git a/Readme.md b/Readme.md index eb19e5c..8cd6c2f 100644 --- a/Readme.md +++ b/Readme.md @@ -24,6 +24,10 @@ The "matlab-stdlib" package uses Java functions throughout, with the higher-leve and the classic [java.io.File](https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/io/File.html) classes. +That is, if Matlab was started with +[-nojvm](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html), +many of the stdlib filesystem function do not work. + ## Acknowledgements Stdlib for Matlab was partly funded by NASA NNH19ZDA001N-HDEE grant 80NSSC20K0176.