// Name: Create Subfolder // Description: Creates a subfolder of the selected folder. // Author: kenNash import "@johnlindquist/kit" const parentFolder = await selectFolder("Select the parent folder") const subfolderName = (await arg({ placeholder: "Enter new subfolder name", strict: false, validate: input => input.trim().length > 0 || "Folder name cannot be empty", })).trim() const newSubfolderPath = path.join(parentFolder, subfolderName) await ensureDir(newSubfolderPath) await notify(`Created: ${newSubfolderPath}`) await revealInFinder(newSubfolderPath)