dbIsBagWritable
dbIsBagWritable(
g_ddObject
)
=> t / nil
Description
Returns the UNIX file permission of the file that contains the property information. For example, basic is a system owned library, dbIsBagWritable will always return nil on its property. If you own a library, and its prop.xx has write permission, even if the bag is opened in r mode, dbIsBagWritable will still return t. A new property bag that exists only in VM is not considered writable.
dbIsBagWritable reports only the UNIX file permission of the file containing the property information. However, if a parent directory of the property bag file is not writable, you will not be able to edit the property bag. To check for this condition, use ddIsObjWritable.Arguments
Value Returned
Examples
chmod 555 libFolder
namei -m libFolder/data.dm
=> f: libFolder/data.dm
dr-xr-xr-x libFolder
-rwxr-xr-x data.dm
dbIsBagWritable(ddGetObj("libFolder"))
=> t
ddIsObjWritable(ddGetObj("libFolder"))
=> nil
Related Topics
Soft Connect Terminal Functions
Return to top