GETPROT()
From Lianjapedia
Contents
Purpose
Function to return current file-protection mask
Syntax
GETPROT()
See Also
Description
Used to manipulate file protection masks, the GETPROT() function returns the current file protection mask which will be used when creating any new files. If the protection mask has not been changed with the SETPROT()function, the default protection mask is returned. The string returned by GETPROT() is known as the file protection mask. The GETPROT() function always returns a character string in upper case.
Example
old_mask = getprot() setprot("S:RWED,O:RWED,G:RW,W:RW") pack setprot(old_mask)