Available since Version 1.0.
Creates a new directory at the specified path.
Syntax
Directory.Create( path )Arguments
- path (string): The path of the directory to create.
Return Values
- (boolean): Returns true if the directory was created successfully, or false if an error occurred (e.g., if the directory already exists or if the path is invalid).
Examples
local success = Directory.Create("new_directory")
if success then
print("Directory created successfully!")
else
print("Failed to create directory.")
end