Go to: Return value. Related commands. Flags. Examples.

Synopsis

getFileList -fld directory -fs filespec

Return value

string[] an array of file names

Related commands

sysFile, filetest

Flags

filespec, folder

Long name (short name)[argument types]Properties
-folder (-fld) stringcreate
return a directory listing
-filespec (-fs) stringcreate
wildcard specifier for search.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command

Examples


  // List the contents of the user's projects directory
	//
	getFileList -folder `internalVar -userWorkspaceDir`;

	// List all MEL files in the user's script directory
	//
	getFileList -folder `internalVar -userScriptDir` -filespec "*.mel";