Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

Please note that the recommended version of Scilab is 6.0.2. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Files : Input/Output functions > Paths - Filenames > fullpath

fullpath

指定した相対パス名に関する完全なパス名を作成する.

呼び出し手順

res = fullpath(relative_path)

引数

res

文字列または文字列の行列

relative_path

文字列または文字列の行列

説明

fullpath(relative_path)は, 指定した相対パス名に関する完全なパス名を作成します.

cd(TMPDIR);
mkdir(TMPDIR + "/niv1");
mkdir(TMPDIR + "/niv1/niv2");
mkdir(TMPDIR + "/niv1/niv2/niv3");
mputl(' ', TMPDIR + "/niv1/test1.txt");
mputl(' ' , TMPDIR + "/niv1/niv2/test2.txt");
cd(TMPDIR + "/niv1/niv2/niv3");
r1 = fullpath("../../test1.txt")
r2 = fullpath("../test2.txt")
M = ["../../test1.txt", "../test2.txt"];
R = fullpath(M)

履歴

バージョン記述
5.4.0 管理された文字列の行列 (SEP 72)
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:25 CEST 2014