|  | 
 | ||||
|        | |||||
|  | ||||||
| Other Library Functions | ||||||
| function | vfs.change-owner | 
| Library: File system utilities (OMVFS) Import: omvfs.xmd | 
export external function change-owner
 value string  path
 on value directory on-dir optional
 owner value string owner optional
 group value string group optional
 contents value switch contents optional initial {contents-not-included}
Argument definitions
You can use vfs.change-owner to change a file's or directory's owner or group. The following program sets the owner and group of a file.
  import "omvfs.xmd" prefixed by vfs.
  
  process
     vfs.change-owner "afile.txt" owner "ftp" group "ftp"
 On Windows NT/2000/XP, which has a notion of domains, the format for
specifying owner and group is the domain followed by a backslash followed by
the user or group, thus: "Domain\User". The following program sets the owner and group of a directory and all of its contents using Windows domain syntax:
  import "omvfs.xmd" prefixed by vfs.
  
  process
     vfs.change-owner "c:\some-dir" owner "Domain\ftp" group "Domain\ftp"
        contents vfs.contents-included
This function is not supported on Windows 98/ME.
The following exceptions may occur:
Copyright © Stilo International plc, 1988-2010.