MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / mkdir

Function mkdir

javascript/selenium-webdriver/io/index.js:261–271  ·  view source on GitHub ↗

* Creates a directory. * * @param {string} aPath The directory path. * @return {!Promise } A promise that will resolve with the path of the * created directory.

(aPath)

Source from the content-addressed store, hash-verified

259 * created directory.
260 */
261function mkdir(aPath) {
262 return checkedCall((callback) => {
263 fs.mkdir(aPath, undefined, (err) => {
264 if (err && err.code !== 'EEXIST') {
265 callback(err)
266 } else {
267 callback(null, aPath)
268 }
269 })
270 })
271}
272
273/**
274 * Recursively creates a directory and any ancestors that do not yet exist.

Callers

nothing calls this directly

Calls 2

checkedCallFunction · 0.85
callbackFunction · 0.85

Tested by

no test coverage detected