isdir Files : Input/Output functions listfiles

Scilab manual >> Files : Input/Output functions > isfile

isfile

checks if argument is a file

Calling Sequence

b = isfile(filenames)

Arguments

files

a character string or a string matrix.

x

an matrix of boolean (%t is filename exists).

Description

x = isfile(filename) checks if filename is existing file or not. (a directory is not a file. see isdir.)

Examples

cd SCI
filenames = ls()
isfile(filenames)

isfile(filenames)

isfile(SCI + '/etc')
isdir(SCI + '/etc')

See Also

Author

A.C

isdir Files : Input/Output functions listfiles