MCPcopy Create free account
hub / github.com/appium/appium / addDirectory

Function addDirectory

scripts/crowdin-update-docs-resources.mjs:50–59  ·  view source on GitHub ↗

* @param {string} name * @param {string|null} [parentId] * @returns {Promise }

(name, parentId)

Source from the content-addressed store, hash-verified

48 * @returns {Promise<number>}
49 */
50async function addDirectory(name, parentId) {
51 const {data: directoryData} = await performApiRequest('/directories', {
52 method: 'POST',
53 payload: {
54 name,
55 directoryId: parentId,
56 },
57 });
58 return directoryData.id;
59}
60
61/**
62 * @param {string} name

Callers 1

ensureDirectoryStructureFunction · 0.85

Calls 1

performApiRequestFunction · 0.90

Tested by

no test coverage detected