1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA - Allan CORNET
5
* Copyright (C) 2011 - DIGITEO - Allan CORNET
7
* This file must be used under the terms of the CeCILL.
8
* This source file is licensed as described in the file COPYING, which
9
* you should have received as part of this distribution. The terms
10
* are also available at
11
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="fullpath">
16
<refname>fullpath</refname>
17
<refpurpose>creates an full path name for the specified relative path name.</refpurpose>
20
<title>Calling Sequence</title>
21
<synopsis>res = fullpath(relative_path)</synopsis>
24
<title>Arguments</title>
29
<para>a string or matrix of string.</para>
35
<term>relative_path</term>
37
<para>a string or a matrix of string.</para>
43
<title>Description</title>
45
<code>fullpath(relative_path)</code> сreates an full path name
46
for the specified relative path name.
49
On GNU/Linux <varname>relative_path</varname> needs to exist.
53
<title>Examples</title>
54
<programlisting role="example"><![CDATA[
56
mkdir(TMPDIR + "/niv1");
57
mkdir(TMPDIR + "/niv1/niv2");
58
mkdir(TMPDIR + "/niv1/niv2/niv3");
59
mputl(' ', TMPDIR + "/niv1/test1.txt");
60
mputl(' ' , TMPDIR + "/niv1/niv2/test2.txt");
62
cd(TMPDIR + "/niv1/niv2/niv3");
64
r1 = fullpath("../../test1.txt")
65
r2 = fullpath("../test2.txt")
66
M = ["../../test1.txt", "../test2.txt"];
71
<title>History</title>
74
<revnumber>5.4.0</revnumber>
75
<revremark>Matrix of String managed (SEP 72)</revremark>