devcam: fix slash-vs-backslash bug on Windows

Change-Id: Id9c952d406db36319919ddbfd1695b5405277bde
This commit is contained in:
Brad Fitzpatrick 2013-12-24 18:44:51 -08:00
parent 5bf44f9aa4
commit bda8ad3c4b
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import (
"os"
"os/exec"
"os/signal"
pathpkg "path"
"path/filepath"
"strconv"
"strings"
@ -167,7 +168,7 @@ func build(path string) error {
return nil
}
_, cmdName := filepath.Split(path)
target := filepath.Join("camlistore.org", path)
target := pathpkg.Join("camlistore.org", filepath.ToSlash(path))
binPath := filepath.Join("bin", cmdName)
var modtime int64
fi, err := os.Stat(binPath)