relativepath
Renvoie le chemin relatif d'un chemin actuel vers un chemin cible.
📝Syntaxe
r = relativepath(path_1, path_2)
📥Arguments d'entrée
Paramètre Description
path_1 a string: fichier ou répertoire.
path_2 a string: fichier ou répertoire cible.
📤Arguments de sortie
Paramètre Description
r a string: chemin relatif.
📄Description

Renvoie le chemin relatif d'un chemin actuel vers le chemin cible.

💡Exemples
relativepath(nelsonroot(), [nelsonroot(), '/lgpl-3.0.md'])
relativepath(nelsonroot(), [nelsonroot(), '/etc/finish.m'])
relativepath([nelsonroot(),'/bin'], [nelsonroot(), '/lgpl-3.0.md'])
relativepath('.', '.')
relativepath('.', '..')
relativepath('..', '.')
🔗Voir aussi
cddir
🕔Historique des versions
Version Description
1.0.0 initial version
Modifier cette page sur GitHub