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

Function get_folder_path

keepercommander/importer/imp_exp.py:116–132  ·  view source on GitHub ↗

Get the path corresponding to a folder uid.

(params, folder_uid)

Source from the content-addressed store, hash-verified

114
115
116def get_folder_path(params, folder_uid):
117 """Get the path corresponding to a folder uid."""
118 uid = folder_uid
119 path = ''
120 while uid in params.folder_cache:
121 f = params.folder_cache[uid]
122 name = f.name.replace(PathDelimiter, 2*PathDelimiter)
123 if path:
124 path = name + PathDelimiter + path
125 else:
126 path = name
127
128 uid = f.parent_uid
129 if not uid:
130 break
131
132 return path
133
134
135def convert_keeper_record(record, has_attachments=False):

Callers 4

exportFunction · 0.70
_importFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected