Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.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 > file_system > newest

newest

retorna o arquivo mais novo de um conjunto de arquivos

Seqüência de Chamamento

k=newest(paths)
k=newest(path1,path2,...,pathn)

Parâmetros

k

o índice do arquivo mais novo

paths

vetor de strings, paths(i) é o endereço do i-ésimo arquivo

pathi

string, o endereço do i-ésimo arquivo

Descrição

Dado um conjunto de endereços, newest retorna o índice do mais novo. Arquivos não existentes são supostos como mais antigos.

Exemplos

newest('SCI/modules/graphics/macros/bode.sci','SCI/modules/graphics/macros/bode.bin')
newest(['SCI/modules/graphics/macros/bode.sci','SCI/modules/graphics/macros/bode.bin'])
newest('SCI/modules/graphics/macros/bode.'+['sci','bin'])

Ver Também

  • fileinfo — Fornece informações sobre um arquivo
Report an issue
<< movefile file_system Paths - Filenames >>

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 Jan 03 14:35:25 CET 2022