Previous - sysFileExist Section Home - File System Next - sysFileCopy


sysFileList ( )

Obtains a list of files in a directory

Usage:

sysFileList (object me, string filePathWildcard )

Parameters:

filePathWildcard (string) - a string specifying the file path to check. This value should use Dos type wildcards such as *.*.

Returns:

(list of strings) - A list of files matching the file spec.

Example:

xtRose = xtra("Rosetta").new( )
strLst_files = xtRose.sysFileList( "c:\windows\*.*" )

Notes:

The parameter allows for customization. For example, if .bmp file types is desired, use "C:\windows\*.bmp" as the filePath wildcard parameter.


Previous - sysFileExist Section Home - File System Next - sysFileCopy