FS_ChangeOwner

function

Library: File system utilities (OMFSYS legacy)
Include: omfsys.xin

Declaration
define external function FS_ChangeOwner
                value      stream  path
   owner        value      integer owner
   group        value      integer group
   status       modifiable stream  statusvalue


Purpose

The omfsys library has been deprecated and will be removed from a future version of the language. Use omvfs instead.

This function allows you to change the ownership ID of a file or directory.

Input arguments:

Output argument:

Note that "newpath" must refer to a valid path name. Also, the user ID of the process must be the same as the file owner or the process must belong to the super-user.

Related Topics