|
ExtensionGetFilesFromDirectoryAsync Method
|
Returns a Task of an array of pathnames of all files with matching extension. Hidden files and filenames that start with a tilde are ignored.
Namespace:
CADSharpTools.Core
Assembly:
CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntaxpublic static Task<string[]> GetFilesFromDirectoryAsync(
string directory,
string extension
)
Public Shared Function GetFilesFromDirectoryAsync (
directory As String,
extension As String
) As Task(Of String())
Parameters
- directory
- Type: SystemString
Directory to look for files in. - extension
- Type: SystemString
file extension without the dot.
Return Value
Type:
TaskStringA task of array of files pathnames.
Remarks- Do not use this method on directories that contain a large number of files.
- A temporary file is created on your disk whenever a file is read by SOLIDWORKS. The temporary filename starts with tilde and is ignored by this method.
See Also