Files
fusion/.changeset/directory-picker-create-folder.md
gsxdsm ee5f5e84ac Address PR review feedback (#1466)
- routes.ts: use isAbsolute() before resolve() for proper path validation
- routes.ts: wrap mkdir() in try/catch to map EEXIST/ENOENT/ENOTDIR to 4xx
- DirectoryPicker.tsx: use !browser.currentPath guard to prevent re-fetch loop
- DirectoryPicker.tsx: disable Create button during in-flight requests
- DirectoryPicker.tsx: add fetchEntries to useEffect dependency array
- DirectoryPicker.tsx: client-side validation for folder names
- Add changeset for the new create-folder feature
2026-06-06 06:31:44 -07:00

628 B

@runfusion/fusion
@runfusion/fusion
minor

Add "New folder" button to DirectoryPicker for project setup

The directory picker in the project setup flow now includes a "New folder" button that lets users create folders directly when selecting a project path. This includes:

  • New POST /api/create-directory endpoint for creating directories
  • Create folder UI in DirectoryPicker with inline error handling
  • Keyboard support (Enter to create, Escape to cancel)
  • Client-side validation for folder names (no path separators or traversal)

Also fixes a bug where navigating into an empty folder would revert to the previous directory.