Garry's Mod Wiki

file.CreateDir

  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.