Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

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

g_ddObject

ddId of library, cell, or view.

Value Returned

t

The property bag already exists for the given ddId object and user has write access to the file that contains it. Or, the bag does not exist, but the user has write access to create it for the given ddId Object.

nil

Returns nil otherwise.

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
 ⠀
X