Difference between revisions of "Fs.makeDir"
From ComputerCraft Wiki
(Create page) |
m (Moved to CAT:LuaCoreFunctions) |
||
Line 11: | Line 11: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Revision as of 18:46, 28 November 2012
Function fs.makeDir | |
Creates a directory (fails if the location already exists as a file; silently does nothing if the location or a parent already exists as a directory; recursively creates directories if a parent is also missing) | |
Syntax | fs.makeDir(string path) |
Returns | nil |
Part of | ComputerCraft |
API | fs |
Examples
Example | |
Create a directory called "efgh" inside a directory called "abcd" ("abcd" need not exist; it will be created) | |
Code |
fs.makeDir("abcd/efgh") |