data_basedistributed_lockInterProcessLockNoWritePermissionacquire

InterProcessLockNoWritePermission.acquire

data_base.distributed_lock.InterProcessLockNoWritePermission.acquire()

Acquire the lock on a path if the user has write permissions.

If the user has no write permissions, then no lock is set and True is returned.

Returns:

True if the lock was acquired successfully or if locking is not necessary, False otherwise.

Return type:

bool