gets file list
dir path S=dir([path])
a string matrix giving a directory pathname (eventually ended by a pattern built with
*). Default value is
dirwith fields :
dir can be used to get the files which match
the patterns given by the
Patterns are given to the Unix
ls or to the Windows
dir commands in order to get information about files.
Thus in order to write portable Scilab script valid wildcard patterns
for both OS are to be given. Note that pathname conversion is
performed and for example
is a valid pattern for both Unix and Windows.
name field of the returned variable is the column vector
of the file names.
date field of the returned variable is the column vector
of integers containing a last modification date coded in second from 1 Jan 1970.
bytes field of the returned variable is the column vector
of integers containing the size of the files in bytes.
isdir field of the returned variable is the column vector
of boolean true if the corresponding name is a directory.
The default display of the returned structure is a column formatted list
of files. It can be changed redefining the function
Since Scilab 5.3.1, a trailing "/" or "\" (see filesep) is displayed for each directory.
|Report an issue|
|<< createdir||Directory||isdir >>|