MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / load

Function load

javascript/selenium-webdriver/io/zip.js:148–153  ·  view source on GitHub ↗

* Asynchronously opens a zip archive. * * @param {string} path to the zip archive to load. * @return {!Promise<!Zip>} a promise that will resolve with the opened * archive.

(path)

Source from the content-addressed store, hash-verified

146 * archive.
147 */
148function load(path) {
149 return io.read(path).then((data) => {
150 let zip = new Zip()
151 return zip.z_.loadAsync(data).then(() => zip)
152 })
153}
154
155/**
156 * Asynchronously unzips an archive file.

Callers 1

unzipFunction · 0.70

Calls 1

readMethod · 0.65

Tested by

no test coverage detected