1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2 <!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
4 <LANGUAGE>eng</LANGUAGE>
6 <TYPE>Scilab Function</TYPE>
7 <DATE>$LastChangedDate$</DATE>
8 <SHORT_DESCRIPTION name="ls"> show files</SHORT_DESCRIPTION>
10 <CALLING_SEQUENCE_ITEM>ls path options</CALLING_SEQUENCE_ITEM>
11 <CALLING_SEQUENCE_ITEM>files=ls( [path] )</CALLING_SEQUENCE_ITEM>
16 <PARAM_NAME>path</PARAM_NAME>
18 <SP>: a string matrix giving a directory pathname (eventually ended
19 by a pattern built with <VERB>*</VERB>). Default value is <VERB>.</VERB></SP>
23 <PARAM_NAME>files</PARAM_NAME>
25 <SP>: a string column vector. By default it contains a column
26 formatted output. if one of the option is
27 <VERB>'-1'</VERB>. <VERB>files</VERB> contains an entry for each
36 <VERB>ls</VERB> can be used to list the files which match
37 the patterns given by the path argument.
38 Patterns are given to the unix <VERB>ls</VERB> or to the windows
39 <VERB>dir</VERB> commands in order to get information on files.
40 Thus in order to write portable Scilab script valid wildcard patterns
41 for both os are to be given. Note that Pathname conversion is
42 performed and for example <VERB>SCI/modules/core/macros/*.sci</VERB> is a valid
43 pattern for both unix and windows.
46 If you want to get a vector of all files matching a pattern use preferabily
47 the <LINK>listfiles</LINK> or the <LINK>dir</LINK>function.
50 Please note that starting from the version 5.0 of Scilab, the second
51 input argument has been removed (a sequence of strings which can
52 be added under Unix systems: the Unix ls command options).
53 This option has been removed mainly for security and portability reasons.
59 ls SCI/modules/core/macros/*.sci
60 x=ls('SCI/modules/core/macros/*.sci')
65 <LINK>listfiles</LINK>
68 <LINK>findfiles</LINK>