MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / assign_shared_folder_record

Function assign_shared_folder_record

keepercommander/sync_down.py:454–461  ·  view source on GitHub ↗
(sfr, sf_record)

Source from the content-addressed store, hash-verified

452
453 if len(response.sharedFolderRecords) > 0:
454 def assign_shared_folder_record(sfr, sf_record):
455 sf_record['record_key'] = utils.base64_url_encode(sfr.recordKey)
456 sf_record['can_share'] = sfr.canShare
457 sf_record['can_edit'] = sfr.canEdit
458 sf_record['owner'] = sfr.owner
459 sf_record['owner_account_uid'] = utils.base64_url_encode(sfr.ownerAccountUid or params.account_uid_bytes)
460 if sfr.expiration > 0:
461 sf_record['expiration'] = sfr.expiration
462
463 for sfr in response.sharedFolderRecords:
464 shared_folder_uid = utils.base64_url_encode(sfr.sharedFolderUid)

Callers 1

_sync_down_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected