diff --git a/src/components/ProjectCreationWizard.jsx b/src/components/ProjectCreationWizard.jsx index 25c5ed8..ed40e60 100644 --- a/src/components/ProjectCreationWizard.jsx +++ b/src/components/ProjectCreationWizard.jsx @@ -654,17 +654,21 @@ const ProjectCreationWizard = ({ onClose, onProjectCreated }) => {
- ) : browserFolders.length === 0 ? ( -
- No folders found -
) : (
- {/* Parent Directory */} - {browserCurrentPath !== '~' && browserCurrentPath !== '/' && ( + {/* Parent Directory - check for Windows root (e.g., C:\) and Unix root */} + {browserCurrentPath !== '~' && browserCurrentPath !== '/' && !/^[A-Za-z]:\\?$/.test(browserCurrentPath) && ( - + {browserFolders.length === 0 ? ( +
+ No subfolders found
- ))} + ) : ( + browserFolders + .filter(folder => showHiddenFolders || !folder.name.startsWith('.')) + .sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase())) + .map((folder, index) => ( +
+ + +
+ )) + )}
)}