CheckForMissingProjectFiles returns an error if the project's configuration or project root cannot be found
(project *DdevApp)
| 326 | |
| 327 | // CheckForMissingProjectFiles returns an error if the project's configuration or project root cannot be found |
| 328 | func CheckForMissingProjectFiles(project *DdevApp) error { |
| 329 | status, _ := project.SiteStatus() |
| 330 | if status == SiteConfigMissing || status == SiteDirMissing { |
| 331 | return fmt.Errorf("ddev can no longer find your project files at %s. If you would like to continue using DDEV to manage this project please restore your files to that directory. If you would like to make DDEV forget this project, you may run 'ddev stop --unlist %s'", project.GetAppRoot(), project.GetName()) |
| 332 | } |
| 333 | |
| 334 | return nil |
| 335 | } |
| 336 | |
| 337 | // GetProjects returns projects that are listed |
| 338 | // in globalconfig projectlist (or in Docker container labels, or both) |
no test coverage detected