r = relativepath(path_1, path_2)
| Parameter | Description |
|---|---|
| path_1 | a string: file or directory. |
| path_2 | a string: file or directory. |
| Parameter | Description |
|---|---|
| r | a string: relative path. |
Returns the relative path from an actual path to the target path.
relativepath(nelsonroot(), [nelsonroot(), '/lgpl-3.0.md'])
relativepath(nelsonroot(), [nelsonroot(), '/etc/finish.m'])
relativepath([nelsonroot(),'/bin'], [nelsonroot(), '/lgpl-3.0.md'])
relativepath('.', '.')
relativepath('.', '..')
relativepath('..', '.')
| Version | Description |
|---|---|
| 1.0.0 | initial version |