lovr.filesystem.createDirectory

Edit

Creates a directory in the save directory. Also creates any intermediate directories that don't exist.

success, error = lovr.filesystem.createDirectory(path)

Arguments

NameTypeDescription
pathstring The directory to create, recursively.

Returns

NameTypeDescription
successboolean Whether the directory was created.
errorstring | nil The error message.

See also