MCPcopy Index your code
hub / github.com/nodejs/node / getContentAsync

Method getContentAsync

lib/internal/vfs/file_handle.js:448–454  ·  view source on GitHub ↗

* Gets the current content asynchronously. * For dynamic content providers, this gets fresh content from the entry. * @returns {Promise }

()

Source from the content-addressed store, hash-verified

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.

Callers 1

readFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected