realpath

Resolves relative paths and extra filesep characters in the input.
354 téléchargements
Mise à jour 12 jan. 2010

Afficher la licence

Updated version of realpath by M MA using suggestions made on that file submission and additional testing. Works for Windows, may need some tweaks for Unix. Substantially faster than original version in testing.

Resolves relative paths and extra filesep characters in the input.

Syntax:
OUTPUT = REALPATH(THEPATH)

where THEPATH is the path to a file or folder, which should exist.

Example:
realpath('../myfile.txt');
% returns /home/user/whatever/myfile.txt

Citation pour cette source

Anthony Corr (2026). realpath (https://fr.mathworks.com/matlabcentral/fileexchange/26360-realpath), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2009b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Search Path dans Help Center et MATLAB Answers
Remerciements

Inspiré par : realpath

Version Publié le Notes de version
1.0.0.0