Create A Controller Directory (LCC.web_file.mkdir)
Signature
ok, err = LCC.web_file.mkdir(path, timeout?)
Parameters
- path
String. Directory to create. - timeout
Number, optional. Request timeout in seconds, default60.
Returns
- ok
Boolean.trueon success,falseon failure. - err
String ornil. Error description when the operation fails.
Notes
Creates a directory, including any missing parent directories.
When the directory already exists the call is still considered successful.
Any controller-side error text is forwarded unchanged.
Example
local ok, err = LCC.web_file.mkdir("/backups", 30)
if not ok then
LCC.log(2, "Failed to create directory", err)
end