@@ -182,13 +182,13 @@ export async function copyProject(
182182 */
183183export async function deleteProject (
184184 storage : commonStorage . Storage , projectName : string ) : Promise < void > {
185- const modulePaths : string [ ] = await storage . listFilePaths (
186- storageNames . makeModulePathRegexPattern ( projectName ) ) ;
185+ const projectFileNames : string [ ] = await storage . list (
186+ storageNames . makeProjectDirectoryPath ( projectName ) ) ;
187187
188- for ( const modulePath of modulePaths ) {
189- await storage . deleteFile ( modulePath ) ;
188+ for ( const projectFileName of projectFileNames ) {
189+ const filePath = storageNames . makeFilePath ( projectName , projectFileName ) ;
190+ await storage . deleteFile ( filePath ) ;
190191 }
191- await deleteProjectInfo ( storage , projectName ) ;
192192}
193193
194194/**
@@ -529,12 +529,6 @@ function parseProjectInfoContentText(projectInfoContentText: string): ProjectInf
529529 return projectInfo ;
530530}
531531
532- async function deleteProjectInfo (
533- storage : commonStorage . Storage , projectName : string ) : Promise < void > {
534- const projectInfoPath = storageNames . makeProjectInfoPath ( projectName ) ;
535- await storage . deleteFile ( projectInfoPath ) ;
536- }
537-
538532export async function fetchProjectInfo (
539533 storage : commonStorage . Storage , projectName : string ) : Promise < ProjectInfo > {
540534 const projectInfoPath = storageNames . makeProjectInfoPath ( projectName ) ;
0 commit comments