Get the path corresponding to a folder uid.
(params, folder_uid)
| 114 | |
| 115 | |
| 116 | def 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 | |
| 135 | def convert_keeper_record(record, has_attachments=False): |
no outgoing calls
no test coverage detected