Skip to content

Commit

Permalink
coprocess_bundle: use Mkdir instead of MkdirAll to create the initial…
Browse files Browse the repository at this point in the history
… bundle directory

This was taken from "grpc-proxy" branch.
  • Loading branch information
matiasinsaurralde authored and mvdan committed Oct 18, 2017
1 parent b73f160 commit f0e6184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coprocess_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func loadBundle(spec *APISpec) {
return
}

if err := os.Mkdir(destPath, 0700); err != nil {
if err := os.MkdirAll(destPath, 0700); err != nil {
bundleError(spec, err, "Couldn't create bundle directory")
return
}
Expand Down

0 comments on commit f0e6184

Please sign in to comment.