Click or drag to resize

DirectoryGetFiles(String) Method

Returns an array populated with the names of files in the specified directory.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static string[] GetFiles(
	string path
)

Parameters

path  String
Directory to search.

Return Value

String
A string array populated with the names of files in the specified directory.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionInvalid Directory location.
DirectoryNotFoundExceptionThe specified directory does not exist.
PathTooLongExceptionThe specified directory is greater than 248 characters.
IOExceptionFile System error.
UnauthorizedAccessExceptionThe user does not have the require permissions.
ArgumentExceptionThe specified argument contains invalid characters.
ArgumentNullExceptionThe specified argument is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also