Difference between revisions of "Fs.makeDir"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
(Remove a confusing and unnecessary clause) |
||
Line 4: | Line 4: | ||
|args=[[string (type)|string]] path | |args=[[string (type)|string]] path | ||
|api=fs | |api=fs | ||
− | |desc=Creates a directory (fails if the location already exists as a file; silently does nothing if the location | + | |desc=Creates a directory (fails if the location already exists as a file; silently does nothing if the location already exists as a directory; recursively creates directories if a parent is also missing). |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 19:14, 21 April 2013
Function fs.makeDir | |
Creates a directory (fails if the location already exists as a file; silently does nothing if the location 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") |