MCPcopy
hub / github.com/e-p-armstrong/augmentoolkit / createInputDirectory

Function createInputDirectory

atk-interface/src/api.js:218–229  ·  view source on GitHub ↗
(relativePath)

Source from the content-addressed store, hash-verified

216};
217
218export const createInputDirectory = async (relativePath) => {
219 const url = getApiUrl('/inputs/directory');
220 const response = await fetch(url, {
221 method: 'POST',
222 headers: { 'Content-Type': 'application/json' },
223 body: JSON.stringify({ relative_path: relativePath }),
224 });
225 if (!response.ok) {
226 await handleApiError(response, `create input directory: ${relativePath}`);
227 }
228 return response.json();
229};
230
231/**
232 * Moves a file or folder within the inputs directory.

Callers 1

handleCreateFolderFunction · 0.90

Calls 2

getApiUrlFunction · 0.90
handleApiErrorFunction · 0.90

Tested by

no test coverage detected