realpath

Resolves relative paths and extra filesep characters in the input.
354 Downloads
Aktualisiert 12. Jan 2010

Lizenz anzeigen

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

Zitieren als

Anthony Corr (2026). realpath (https://de.mathworks.com/matlabcentral/fileexchange/26360-realpath), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2009b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Search Path finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: realpath

Version Veröffentlicht Versionshinweise
1.0.0.0