Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка Scilab >> Файлы: функции ввода/вывода > Пути - Имена файлов > fullpath

fullpath

создаёт имя полного пути для определённого имени относительного пути

Синтаксис

res = fullpath(relative_path)

Аргументы

res

строка или матрица строк, имя полного пути.

relative_path

строка или матрица строк, имя относительного пути.

Описание

fullpath(relative_path) создаёт имя полного пути для определённого имени относительного пути relative_path.

В GNU/Linux нужно, чтобы относительный путь 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)

История

VersionDescription
5.4.0 Управление матрицей строк (SEP 72)
Report an issue
<< fullfile Пути - Имена файлов get_absolute_file_path >>

Copyright (c) 2022-2023 (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:
Tue Feb 25 08:54:57 CET 2020