GetFoldersInFolder

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Returns an array of folder names in a subdirectory relative to the ".\Data" folder. Wildcards may be used in the 'filter' string, e.g. "vault*"

Syntax

[help]
(array) GetFoldersInFolder folderpath:string filter:string 

Or:

(array) GetFolders folderpath:string filter:string 

Syntax and Usage

array_var Array

let Array := GetFoldersInFolder "Config/Mod"
array_var Array
string_var Path

let Path := "Config/Mod"
let Array := GetFoldersInFolder $Path

To get all folders in the Data folder itself, pass an empty string to the folderpath parameter:

let aFolders := GetFoldersInFolder "%e"

See Also