Garry's Mod Wiki

DTree_Node:MakeFolder

  DTree_Node:MakeFolder( string folder, string path, boolean showFiles = false, string wildcard = "*", boolean dontForceExpandable = false )

Description

Makes this node a folder in the filesystem. This will make it automatically populated.

See also DTree_Node:AddFolder.

Arguments

1 string folder
The folder in the filesystem to use, relative to the garrysmod/ folder.
2 string path
The path to search in. See File Search Paths
3 boolean showFiles = false
Should files be added as nodes (true) or folders only (false)
4 string wildcard = "*"
The wildcard to use when searching for files.
5 boolean dontForceExpandable = false
If set to true, don't show the expand buttons on empty nodes.