| 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
)
Public Shared Function GetListing (
path As String,
getSubDirs As Boolean
) As String()
public:
static array<String^>^ GetListing(
String^ path,
bool getSubDirs
)
static member GetListing :
path : string *
getSubDirs : bool -> string[]
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:
StringAn 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