FileSystem.DirectoryList(String, Variable) Method

Top 

Description

Lists the names of files and folders contained within the specified path.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

 

Method Signature

FileSystem.DirectoryList(

String path,


Variable recursive)

 

Arguments

path


Description:

The path to the directory whose contents are to be listed.

 

recursive


Description:

A flag which determines if subfolders will have their contents listed, recursively.

Valid Values:

Value

Label

0

false

1

true

 

 

Return Value

Type:

Array of string

 

Returns a StringArray populated with the names of files an directories contained within the specified directory.

 

Syntax

myStringArray1 = myFileSystem1.DirectoryList(myString1, myVariable1);

 

See also

FileSystem Object

FileSystem.DirectoryList

Interfacing with Files Guide