string GetDirectoryList(string rootdir, bool listDirectories = true, string extensionFilter = null, int sortFlags = 0)

Gets a list of files and directories at a specified location. Trust Level Required: High


Name Description
rootdir The root directory to search.
listDirectories True to show directories, false to show files only.
extensionFilter A comma-separated list of extensions to filter by (bmp,txt,zip).
sortFlags 0 = Undefined, 1 = Alphabetical, 2 = DirectoriesFirst, 4 = AlphanumericSort (requires 1 to be set).


A JSON encoded list of FileInfo objects.