* Gets the current content asynchronously. * For dynamic content providers, this gets fresh content from the entry. * @returns {Promise }
()
| 446 | * @returns {Promise<Buffer>} |
| 447 | */ |
| 448 | async getContentAsync() { |
| 449 | // If entry has a dynamic content provider, get fresh content async |
| 450 | if (this.#entry?.getContentAsync) { |
| 451 | return this.#entry.getContentAsync(); |
| 452 | } |
| 453 | return this.#content; |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Reads data from the file synchronously. |