MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handleCreateFolder

Function handleCreateFolder

src/components/FileBrowser.tsx:382–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380
381 // Create folder
382 const handleCreateFolder = async () => {
383 if (!newFolderName.trim()) return;
384 try {
385 await fetch("/api/files/mkdir", {
386 method: "POST",
387 headers: { "Content-Type": "application/json" },
388 body: JSON.stringify({ workspace, path, name: newFolderName.trim() }),
389 });
390 setNewFolderName("");
391 setShowNewFolder(false);
392 loadItems();
393 } catch {
394 alert("Failed to create folder");
395 }
396 };
397
398 // Create file
399 const handleCreateFile = async () => {

Callers 1

FileBrowserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected