GetAbsDocroot returns the absolute path to the docroot on the host or if inContainer is set to true in the container.
(inContainer bool)
| 639 | // GetAbsDocroot returns the absolute path to the docroot on the host or if |
| 640 | // inContainer is set to true in the container. |
| 641 | func (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. |