mirror of https://github.com/perkeep/perkeep.git
localdisk: fix double slash in full path, preventing race lock from working
Change-Id: I171099214b06ec99d0ad766d1604442879fb3183
This commit is contained in:
parent
da42bdf523
commit
b5bccf2261
|
@ -48,7 +48,7 @@ func (ee *enumerateError) Error() string {
|
|||
}
|
||||
|
||||
func readBlobs(opts readBlobRequest) error {
|
||||
dirFullPath := opts.dirRoot + "/" + opts.pathInto
|
||||
dirFullPath := filepath.Join(opts.dirRoot, opts.pathInto)
|
||||
dir, err := os.Open(dirFullPath)
|
||||
if err != nil {
|
||||
return &enumerateError{"localdisk: opening directory " + dirFullPath, err}
|
||||
|
|
Loading…
Reference in New Issue