From 77ed1512435b4d8f55b75beacbbf8f5c6512f170 Mon Sep 17 00:00:00 2001 From: kristen1980 Date: Sun, 7 Dec 2014 10:00:35 -0700 Subject: [PATCH] Allow absolute path for filesystem cache Gives more flexibility by making it an absolute path. A relative path can easily be created by the user. --- cache/file.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cache/file.go b/cache/file.go index 6ecf6568..bbbbbad2 100644 --- a/cache/file.go +++ b/cache/file.go @@ -92,8 +92,6 @@ func (fc *FileCache) StartAndGC(config string) error { // Init will make new dir for file cache if not exist. func (fc *FileCache) Init() { - app := filepath.Dir(os.Args[0]) - fc.CachePath = filepath.Join(app, fc.CachePath) if ok, _ := exists(fc.CachePath); !ok { // todo : error handle _ = os.MkdirAll(fc.CachePath, os.ModePerm) // todo : error handle }