Name

isfile — checks if argument is a file

Calling Sequence

b = isfile(filenames)

Parameters

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

fileinfo, isdir

Author

A.C