|Download Help (Windows Only)|
Owning Class: support
Requires: MathScript RT Module
c = ls
c = ls(a)
Lists all files in a directory. ls(a) is equivalent to dir(a). If you do not specify a, this function returns the current working directory.
|a||Specifies the directory for which you want a list of files. a can include regular expressions. a is a string.|
|c||Returns a list of the files in a. c is a string.|
If you use this function in a stand-alone application or shared library and do not specify an input, LabVIEW returns a list of all files in the directory where you installed the application or shared library. (Real-Time Module) If you deploy this function to an RT target and do not specify an input, LabVIEW returns a list of files in the directory given by the Default Data Directory VI.
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||No (affects entire script)|
% Lists all VIs in the working directory
C = ls('*.vi')