vfsRename

function

Library: File system utilities (OMVFS legacy)
Include: omvfs.xin

Declaration
define external function vfsRename
       value	stream  location
     to  value    stream  newname

Argument definitions

location
the file or directory target of the rename
newname
the new name of the target


Purpose

Use this function to rename a file or subdirectory.

Location must:

Newname must

Example

Renaming a file on the current directory

  include "omvfs.xin"
  
  process
    	.
  	.
  	.
    vfsRename "myfile.txt"
  	to "myoldfile.txt"