Set Permissions Function

Owning Palette: Advanced File VIs and Functions

Requires: Base Development System

Sets the owner, group, and permissions of the file or directory specified by path. This function does not work for files inside an LLB.

Details  

 Add to the block diagram  Find on the palette
permissions specifies the new permissions setting for the file or directory. Refer to Setting Permissions for more information about how to define the permissions you want to set.
path specifies the file or directory whose access rights you want to change.
new owner specifies the new owner for the file or directory. If new owner is an empty string, the VI does not set the owner.
new group specifies the new group for the file or directory. If new group is an empty string, the VI does not set the group.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
path out returns path unchanged.
error out contains error information. This output provides standard error out functionality.

Set Permissions Details

If you do not specify new owner, new group, or permissions, this function returns the current settings unchanged.

(Windows) This function ignores new owner and new group because Windows does not support owners and groups.

(macOS) If path refers to a file, this function ignores new owner and new group because macOS does not support owners or groups for files.