()
| 359 | } |
| 360 | return this.getAlbumByName(pathString); |
| 361 | } |
| 362 | |
| 363 | private async getAlbumByName(name: string): Promise<NodeEntity> { |
| 364 | for await (const maybeAlbum of this.photosSdk.iterateAlbums()) { |
| 365 | if (getName(maybeAlbum) === name) { |
| 366 | return maybeAlbum; |
| 367 | } |
| 368 | } |
| 369 | throw new ValidationError(`Album not found: ${name}`); |
| 370 | } |
| 371 | } |
| 372 |
no test coverage detected