MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getExpectedType

Function getExpectedType

src/utils/helpers.js:444–445  ·  view source on GitHub ↗
(isLastPart)

Source from the content-addressed store, hash-verified

442 return fullUri;
443 };
444 const getExpectedType = (isLastPart) =>
445 isLastPart && isFile ? "file" : "folder";
446 const ensureEntry = async (baseUri, targetUri, name, expectedType) => {
447 const entries = await fsOperation(baseUri).lsDir();
448 const existingEntry = entries.find((entry) => entry.name === name);

Callers 1

createFileStructureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected