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.

Page Links


Special Pages


Wikis

?

Render Time: 38ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 18
Render Body 0
Render Sidebar 12