Garry's Mod Wiki

DTree_Node:AddFolder

  Panel DTree_Node:AddFolder( string name, string folder, string path, boolean showFiles = false, string wildcard = "*", boolean bDontForceExpandable = false )

Description

A helper function that adds a new node and calls to DTree_Node:MakeFolder on it.

Arguments

1 string name
The name of the new node
2 string folder
The folder in the filesystem to use, relative to the garrysmod/ folder.
3 string path
The path to search in. See File Search Paths
4 boolean showFiles = false
Should files be added as nodes (true) or folders only (false)
5 string wildcard = "*"
The wildcard to use when searching for files.
6 boolean bDontForceExpandable = false

Returns

1 Panel
The created DTree_Node