Click or drag to resize
Galactic API

DirectoryGetListing Method

Gets a list of the contents of a directory at the specified path.

Namespace:  Galactic.FileSystem
Assembly:  Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static string[] GetListing(
	string path,
	bool getSubDirs
)

Parameters

path
Type: SystemString
The path of the directory to get a list of the contents of.
getSubDirs
Type: SystemBoolean
Whether to obtain a list of the contents of all subdirectories as well.

Return Value

Type: String
An array of strings with the names of directories and files under the supplied path. Null if the path is invalid, does not exist, or the current process does not have permission to get the directory listing.
See Also