Skip to content

Commit

Permalink
Fix OS-specific slashing without strconv
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesvp committed May 14, 2015
1 parent ff0d236 commit 954c0db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"path"
"path/filepath"
"strconv"
"strings"

"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/cheggaaa/pb"
Expand Down Expand Up @@ -389,7 +388,7 @@ func checkForParentIgnorePatterns(givenPath string, ignoreFilePatterns []ignore.

// break out the absolute path
dir := filepath.Dir(absolutePath)
pathComponents := strings.Split(dir, strconv.QuoteRune(filepath.Separator))
pathComponents := strings.Split(dir, string(filepath.Separator))

// We loop through each parent component attempting to find an .ipfsignore file
for index, _ := range pathComponents {
Expand All @@ -400,7 +399,7 @@ func checkForParentIgnorePatterns(givenPath string, ignoreFilePatterns []ignore.

localIgnore, ignoreErr := ignore.CompileIgnoreFile(ignorePathname)
if ignoreErr == nil && localIgnore != nil {
log.Debugf("found ignore file: %s", dir)
log.Debugf("found ignore file: %s", ignorePathname)
ignoreFilePatterns = append(ignoreFilePatterns, *localIgnore)
}
}
Expand Down

0 comments on commit 954c0db

Please sign in to comment.