Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - Français


fullpath

creates an full path name for the specified relative path name.

Syntax

res = fullpath(relative_path)

Arguments

res

a string or matrix of string.

relative_path

a string or a matrix of string.

Description

fullpath(relative_path) сreates a full path name for the specified relative path name.

Examples

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)

History

VersionDescription
5.4.0 Matrix of String managed (SEP 72)
Report an issue
<< fullfile Chemins - nom de fichiers get_absolute_file_path >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:15:59 CEST 2024