file.CreateDir

From Garry's Mod
Jump to: navigation, search
 file.CreateDir( )

Contents

Description

Creates a directory that is relative to the data folder.

Arguments

string name

The directory's name.

Examples

Example

Creates a directory named sample in the data folder.

file.CreateDir("sample")


Examples

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.
Personal tools
Navigation