localdisk: fix double slash in full path, preventing race lock from working

Change-Id: I171099214b06ec99d0ad766d1604442879fb3183
This commit is contained in:
Brad Fitzpatrick 2012-04-21 08:29:32 -07:00
parent da42bdf523
commit b5bccf2261
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func (ee *enumerateError) Error() string {
} }
func readBlobs(opts readBlobRequest) error { func readBlobs(opts readBlobRequest) error {
dirFullPath := opts.dirRoot + "/" + opts.pathInto dirFullPath := filepath.Join(opts.dirRoot, opts.pathInto)
dir, err := os.Open(dirFullPath) dir, err := os.Open(dirFullPath)
if err != nil { if err != nil {
return &enumerateError{"localdisk: opening directory " + dirFullPath, err} return &enumerateError{"localdisk: opening directory " + dirFullPath, err}