GetDocumentPaths(String, String[])

Retrieves document paths for all files within the target directory.

Declaration
public static List<string> GetDocumentPaths(string directory, string[] extensions = null)
Example
Documents.GetDocumentPaths(@"C:\Skyline DataMiner\Documents\Test\");

Documents.GetDocumentPaths(@"C:\Skyline DataMiner\Documents\Test\", new[] { ".xml" });
Result
[AlarmTemplates\AlarmTemplate.xml, Testing_Duo.svg, DemoProtocol.xml]

[AlarmTemplates\AlarmTemplate.xml, DemoProtocol.xml]

Last updated