Difference between revisions of "Os.remove"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>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.</translate> | <translate>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.</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
os.remove(filename) | os.remove(filename) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''filename''': (string) <translate>filename to delete</translate> <br/> | '''filename''': (string) <translate>filename to delete</translate> <br/> |
Revision as of 07:27, 24 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)
Parameters
filename: (string) filename to delete