Garry's Mod Wiki

DTree_Node:AddFolder

void 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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 8
Render Body 0
Render Sidebar 12