Garry's Mod Wiki

Garry's Mod Wiki

  file.CreateDir( string name )

Description

Creates a directory that is relative to the data folder.

Arguments

1 string name
The directory's name.

Example

Creates a directory named sample in the data folder.

file.CreateDir("sample")

Example

This function will create all subfolders you specify.

file.CreateDir("a/b/c/d/e/f/g")
Output: A folder named a is created in the data folder, which contains the folder named b, which contains a folder named c, etc.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...