The os.rmdir function removes an existing directory as well as any files or subdirectories it contains.
os.rmdir("path")
Parameters
path is the file system path to be removed.
Return Value
True if successful, otherwise nil and an error message.
The os.rmdir function removes an existing directory as well as any files or subdirectories it contains.
os.rmdir("path")
path is the file system path to be removed.
True if successful, otherwise nil and an error message.