Difference between revisions of "Os.remove"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Deletes the file or directory with the given name. Directories must be empty to be removed. If this fu...") |
|||
Line 4: | Line 4: | ||
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error. | Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | os.remove(filename) | |
</source> | </source> | ||
− | '''filename | + | '''filename''': (string) filename to delete ''''''<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2011.6
Description
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.
os.remove(filename)
'filename: (string) filename to delete '