MCPcopy Create free account
hub / github.com/ddev/ddev / GetHostUploadDirFullPath

Method GetHostUploadDirFullPath

pkg/ddevapp/upload_dirs.go:88–95  ·  view source on GitHub ↗

GetHostUploadDirFullPath returns the full path to the first upload directory on the host or "" if there is none.

()

Source from the content-addressed store, hash-verified

86// GetHostUploadDirFullPath returns the full path to the first upload directory on the
87// host or "" if there is none.
88func (app *DdevApp) GetHostUploadDirFullPath() string {
89 uploadDirs := app.GetUploadDirs()
90 if len(uploadDirs) > 0 {
91 return app.calculateHostUploadDirFullPath(uploadDirs[0])
92 }
93
94 return ""
95}
96
97// calculateContainerUploadDirFullPath returns the full path to the upload
98// directory in container or "" if there is none.

Callers 12

TestDdevFullSiteSetupFunction · 0.95
TestDdevImportFilesDirFunction · 0.95
TestDdevImportFilesFunction · 0.95
TestLocalfilePullFunction · 0.80
TestAcquiaPullFunction · 0.80
TestPantheonPullFunction · 0.80
startAndCheckUpsunPullFunction · 0.80
TestLagoonPullFunction · 0.80
TestGitPullFunction · 0.80

Calls 2

GetUploadDirsMethod · 0.95

Tested by 12

TestDdevFullSiteSetupFunction · 0.76
TestDdevImportFilesDirFunction · 0.76
TestDdevImportFilesFunction · 0.76
TestLocalfilePullFunction · 0.64
TestAcquiaPullFunction · 0.64
TestPantheonPullFunction · 0.64
startAndCheckUpsunPullFunction · 0.64
TestLagoonPullFunction · 0.64
TestGitPullFunction · 0.64