Lines Matching refs:filename
290 func (jsonLoadSaver) Save(g *DepGraph, filename string, roots []string) error {
300 f, err := os.Create(filename)
317 func (gobLoadSaver) Save(g *DepGraph, filename string, roots []string) error {
319 f, err := os.Create(filename)
350 filename := ".kati_cache." + mk
352 filename += "." + r
354 return url.QueryEscape(filename)
711 func (jsonLoadSaver) Load(filename string) (*DepGraph, error) {
713 f, err := os.Open(filename)
733 func (gobLoadSaver) Load(filename string) (*DepGraph, error) {
735 f, err := os.Open(filename)
761 filename := cacheFilename(makefile, roots)
762 if !exists(filename) {
763 glog.Warningf("Cache not found %q", filename)
764 return nil, fmt.Errorf("cache not found: %s", filename)
767 g, err := GOB.Load(filename)
769 glog.Warning("Cache load error %q: %v", filename, err)
794 glog.Info("Cache found in %q", filename)