Previous Topic: Is_ReadOnly - Check the File for the 'Read Only' AttributeNext Topic: Is_SUID - Check the File for the 'SET USER ID' Attribute


Is_SGID - Check the File for the 'Set Group ID' Attribute

Valid on UNIX only

The Is_SGID function checks the file for the specified attribute Set Group ID.

This file content function has the format:

Is_SGID(filename as String) as Boolean
filename

Identifies a file path.

This function returns TRUE if the attribute is set; otherwise, the function returns FALSE.

Example: Is_SGID function

If Is_SGID(Argv(1)) Then
	print(Argv(1) + " indicates 'SGID'.")
Else
	print(Argv(1) + " does not indicate 'SGID'.")
End If