relativepath
Returns the relative path from an actual path to the target path.
📝Syntax
r = relativepath(path_1, path_2)
📥Input Arguments
Parameter Description
path_1 a string: file or directory.
path_2 a string: file or directory.
📤Output Arguments
Parameter Description
r a string: relative path.
📄Description

Returns the relative path from an actual path to the target path.

💡Examples
relativepath(nelsonroot(), [nelsonroot(), '/lgpl-3.0.md'])
relativepath(nelsonroot(), [nelsonroot(), '/etc/finish.m'])
relativepath([nelsonroot(),'/bin'], [nelsonroot(), '/lgpl-3.0.md'])
relativepath('.', '.')
relativepath('.', '..')
relativepath('..', '.')
🔗See Also
cddir
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub