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

Method GetAbsDocroot

pkg/ddevapp/ddevapp.go:641–647  ·  view source on GitHub ↗

GetAbsDocroot returns the absolute path to the docroot on the host or if inContainer is set to true in the container.

(inContainer bool)

Source from the content-addressed store, hash-verified

639// GetAbsDocroot returns the absolute path to the docroot on the host or if
640// inContainer is set to true in the container.
641func (app DdevApp) GetAbsDocroot(inContainer bool) string {
642 if inContainer {
643 return path.Join(app.GetAbsAppRoot(true), app.GetDocroot())
644 }
645
646 return filepath.Join(app.GetAbsAppRoot(false), app.GetDocroot())
647}
648
649// GetAbsAppRoot returns the absolute path to the project root on the host or if
650// inContainer is set to true in the container.

Callers 15

CreateDocrootMethod · 0.95
AppTypePromptMethod · 0.95
TestUploadDirsFunction · 0.80
isBackdropAppFunction · 0.80
isTypo3LegacyV11OrLowerFunction · 0.80

Calls 2

GetAbsAppRootMethod · 0.95
GetDocrootMethod · 0.95

Tested by 1

TestUploadDirsFunction · 0.64