Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function
files = ls [path] files = ls( [path] )
a string matrix giving a directory pathname (eventually ended by a pattern built with
*). Default value is
a string column vector. By default it contains a column formatted output.
ls can be used to list 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 on 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
SCI/modules/core/macros/*.sci is a valid
pattern for both Unix and Windows.
Please note that starting from the version 5.0 of Scilab, the second input argument has been removed (a sequence of strings which can be added under Unix systems: the Unix
options). This option has been removed mainly for security and portability reasons.
ls ls SCI/modules/core/macros/*.sci x=ls('SCI/modules/core/macros/*.sci')
|Report an issue