Merge pull request #3429 from cli/log-fail-cache
hotfix: create cache dir in run view
This commit is contained in:
commit
bd663b5049
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,11 @@ func (rlc) Exists(path string) bool {
|
|||
return true
|
||||
}
|
||||
func (rlc) Create(path string, content io.ReadCloser) error {
|
||||
err := os.MkdirAll(filepath.Dir(path), 0755)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not create cache: %w", err)
|
||||
}
|
||||
|
||||
out, err := os.Create(path)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue