|
ExtensionGetFilesFromDirectory Method
|
Returns 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 string[] GetFilesFromDirectory(
string directory,
string extension
)
Public Shared Function GetFilesFromDirectory (
directory As String,
extension As String
) As String()
Parameters
- directory
- Type: SystemString
Directory to look for files in. - extension
- Type: SystemString
file extension without the dot.
Return Value
Type:
StringArray 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