Skip to content

Commit

Permalink
fix(backend): OutPutPath dir creation mode Fixes #7629
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim committed Sep 4, 2023
1 parent 3fb1996 commit 3945b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/v2/component/launcher_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ func localPathForURI(uri string) (string, error) {
func prepareOutputFolders(executorInput *pipelinespec.ExecutorInput) error {
for name, parameter := range executorInput.GetOutputs().GetParameters() {
dir := filepath.Dir(parameter.OutputFile)
if err := os.MkdirAll(dir, 0644); err != nil {
if err := os.MkdirAll(dir, 0755); err != nil {
return fmt.Errorf("failed to create directory %q for output parameter %q: %w", dir, name, err)
}
}
Expand All @@ -730,7 +730,7 @@ func prepareOutputFolders(executorInput *pipelinespec.ExecutorInput) error {
return fmt.Errorf("failed to generate local storage path for output artifact %q: %w", name, err)
}

if err := os.MkdirAll(filepath.Dir(localPath), 0644); err != nil {
if err := os.MkdirAll(filepath.Dir(localPath), 0755); err != nil {
return fmt.Errorf("unable to create directory %q for output artifact %q: %w", filepath.Dir(localPath), name, err)
}
}
Expand Down

0 comments on commit 3945b94

Please sign in to comment.