* Builds the externalId for a repository file: `file:{repoId}:{path}`. The path * retains its leading slash as returned by the Items API.
(repoId: string, path: string)
| 190 | * retains its leading slash as returned by the Items API. |
| 191 | */ |
| 192 | function fileExternalId(repoId: string, path: string): string { |
| 193 | return `${FILE_PREFIX}${repoId}:${path}` |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Parses a file externalId back into its repository ID and path. Returns null |