stageDirectory creates a subdirectory of the provided path for temporary operations path is the parent staged directory and should already exist subpath is the subdirectory that should be created inside path
(path, subpath string)
| 351 | // path is the parent staged directory and should already exist |
| 352 | // subpath is the subdirectory that should be created inside path |
| 353 | func stageDirectory(path, subpath string) (string, error) { |
| 354 | targetPath := filepath.Join(path, subpath) |
| 355 | err := os.Mkdir(targetPath, os.ModePerm) |
| 356 | return targetPath, err |
| 357 | } |
| 358 | |
| 359 | // NameStagingDirectory assigns a name that matches the package source information |
| 360 | func NameStagingDirectory(source, branch, sha string) string { |