Click or drag to resize

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)
Syntax
public static string[] GetFilesFromDirectory(
	string directory,
	string extension
)

Parameters

directory
Type: SystemString
Directory to look for files in.
extension
Type: SystemString
file extension without the dot.

Return Value

Type: String
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