Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Arquivos : funções de Entrada/Saída > Paths - Filenames > get_absolute_file_path

get_absolute_file_path

fornece o nome de endereço absoluto de um arquivo aberto no Scilab

Seqüência de Chamamento

pathname = get_absolute_file_path(filename)

Parâmetros

filename

string : nome do arquivo

pathname

string : o nome de endereço absoluto

Descrição

Fornece o nome de endereço absoluto de um arquivo já aberto no Scilab.

get_absolute_file_path procura na lista interna de arquivos abertos correntemente do Scilab, filename e retorna seu endereço.

Se o arquivo não for aberto, um erro é retornado.

Aviso : na versão anterior (Scilab 5.0.x) o diretório corrente era retornado se o arquivo não fosse encontrado.

Esta função pode ser utilizada para encontrar de onde (endereço) um script Scilab é executado.

Exemplos

// executando este script

a=mopen(TMPDIR+'test.sce','wt');
disp(get_absolute_file_path('test.sce'));
mclose(a);

Autores

Allan CORNET

Report an issue
<< fullpath Paths - Filenames getdrives >>

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:
Mon Feb 12 19:58:37 CET 2018