blobref fetcher: use osutil.CamliConfigDir, don't duplicate

This commit is contained in:
Brad Fitzpatrick 2011-05-15 21:55:19 -07:00
parent 34b0f50864
commit e2c955bddb
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ import (
"path/filepath"
"strings"
"sync"
"camli/osutil"
)
var _ = log.Printf
@ -60,7 +62,7 @@ func NewSimpleDirectoryFetcher(dir string) *DirFetcher {
}
func NewConfigDirFetcher() *DirFetcher {
configDir := filepath.Join(os.Getenv("HOME"), ".camli", "keyblobs")
configDir := filepath.Join(osutil.CamliConfigDir(), "keyblobs")
return NewSimpleDirectoryFetcher(configDir)
}