GetHostUploadDirFullPath returns the full path to the first upload directory on the host or "" if there is none.
()
| 86 | // GetHostUploadDirFullPath returns the full path to the first upload directory on the |
| 87 | // host or "" if there is none. |
| 88 | func (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. |