Mozilla Skin
BLOG | FORUMS | WIKI | DEVELOPERS | MY EYEOS | PROFESSIONAL SERVICES | PROJECT PAGE

Service vfs rename

From eyeOS Wiki

Contents

Syntax

vfs('rename', array($orig, $dest))

or

service('vfs', 'rename', array($orig, $dest))

Description

Changes the name of an abstract file.

Arguments

orig: file to be renamed.

dest: new name for the file.

Return values

If the original file exists, there is no file with the same name as the new name for the file and the file is renamed correctly, returns true. Else, returns false.