realpath

バージョン 1.0.0.0 (1.63 KB) 作成者: Anthony Corr
Resolves relative paths and extra filesep characters in the input.
ダウンロード: 352
更新 2010/1/12

ライセンスの表示

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

引用

Anthony Corr (2024). realpath (https://www.mathworks.com/matlabcentral/fileexchange/26360-realpath), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2009b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersSearch Path についてさらに検索
謝辞

ヒントを得たファイル: realpath

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0