Skip to content

Commit

Permalink
Merge pull request #10323 from dmcgowan/path-v-filepath-fix
Browse files Browse the repository at this point in the history
Use filepath instead of path
  • Loading branch information
crosbymichael committed Jan 26, 2015
2 parents 74014e4 + 2cd5b7d commit 949f2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"mime"
"os"
"path"
"path/filepath"
"strings"

log "github.com/Sirupsen/logrus"
Expand Down Expand Up @@ -55,7 +55,7 @@ func MatchesContentType(contentType, expectedType string) bool {
// LoadOrCreateTrustKey attempts to load the libtrust key at the given path,
// otherwise generates a new one
func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
err := os.MkdirAll(path.Dir(trustKeyPath), 0700)
err := os.MkdirAll(filepath.Dir(trustKeyPath), 0700)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 949f2ca

Please sign in to comment.