MCPcopy Index your code
hub / github.com/ddev/ddev / CheckForMissingProjectFiles

Function CheckForMissingProjectFiles

pkg/ddevapp/utils.go:328–335  ·  view source on GitHub ↗

CheckForMissingProjectFiles returns an error if the project's configuration or project root cannot be found

(project *DdevApp)

Source from the content-addressed store, hash-verified

326
327// CheckForMissingProjectFiles returns an error if the project's configuration or project root cannot be found
328func 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)

Callers 3

start.goFile · 0.92
describe.goFile · 0.92
ValidateConfigMethod · 0.85

Calls 4

SiteStatusMethod · 0.80
ErrorfMethod · 0.80
GetAppRootMethod · 0.80
GetNameMethod · 0.80

Tested by

no test coverage detected