Skip to content

Commit 07ab2eb

Browse files
committed
doc [skip ci]
1 parent 46a6b87 commit 07ab2eb

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

+stdlib/canonical.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%% CANONICAL Canonicalize path
22
% c = canonical(p);
33
% If exists, canonical absolute path is returned.
4-
% if path does not exist, normalized relative path is returned.
4+
% if any component of path does not exist, normalized relative path is returned.
55
% UNC paths are not canonicalized.
66
%
77
% This also resolves Windows short paths to long paths.
@@ -34,11 +34,13 @@
3434

3535
if stdlib.exists(c, use_java)
3636
if stdlib.isoctave()
37+
% empty if any component of path does not exist
3738
c = canonicalize_file_name(c);
3839
elseif use_java
40+
% incorrect result if any component of path does not exist
3941
c = javaFileObject(c).getCanonicalPath();
4042
else
41-
% errors if any component of path does not exist. Errors on leading ~
43+
% errors if any component of path does not exist.
4244
c = builtin('_canonicalizepath', c);
4345
end
4446
elseif stdlib.len(c)

+stdlib/exists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%% EXISTS does path exist
22
%
3-
% NOTE: in general on Windows existS("not-exist/..") is true, but on
3+
% NOTE: in general on Windows exists("./not-exist/..") is true, but on
44
% Unix it is false.
55
% In C/C++ access() or stat() the same behavior is observed Windows vs Unix.
66
%

+stdlib/h5get_version.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
%% H5GET_VERSION get version of HDF5 library as a string
2+
3+
function v = h5get_version()
4+
5+
[major, minor, rel] = H5.get_libversion();
6+
7+
v = sprintf("%d.%d.%d", major, minor, rel);
8+
9+
end

0 commit comments

Comments
 (0)