fs.makeDir
From ComputerCraft Wiki
Revision as of 19:43, 22 April 2013 by Hawk777 (Talk | contribs) (Copy description from API page and use type template)
Function fs.makeDir | |
Makes a directory. If the location is already a directory, this function silently does nothing. If any parent path components are missing, they are also created. If the target location or any parent exists and is a file (instead of a directory), the operation fails. | |
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") |