Difference between revisions of "Os.rename"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a str...") |
|||
Line 4: | Line 4: | ||
Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error. | Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | os.rename(oldname,newname) | |
</source> | </source> | ||
− | '''oldname | + | '''oldname''': (string) current name of the file ''''''<br/> |
− | '''newname | + | '''newname''': (string) new name of the file ''''''<br/> |
Revision as of 10:19, 23 August 2018
Available since: Gideros 2011.6
Description
Renames file or directory named oldname to newname. If this function fails, it returns nil, plus a string describing the error.
os.rename(oldname,newname)
'oldname: (string) current name of the file '
'newname: (string) new name of the file '