From 6a04c9374fb5eef026b3f96e0f540614de3433f3 Mon Sep 17 00:00:00 2001 From: Akash Shinde Date: Thu, 22 Aug 2019 20:04:23 +0530 Subject: [PATCH] Add more comments Signed-off-by: Akash Shinde --- pkg/helmpath/lazypath.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/helmpath/lazypath.go b/pkg/helmpath/lazypath.go index 1313ee7fd..83b02e7ff 100644 --- a/pkg/helmpath/lazypath.go +++ b/pkg/helmpath/lazypath.go @@ -51,6 +51,7 @@ func (l lazypath) dataPath(file string) string { return l.path(xdg.DataHomeEnvVar, dataHome, file) } +// ensurePathExist creates directory if not exist, this lazily loads config and cache directories func (l lazypath) ensurePathExist(path string) { if fi, err := os.Stat(path); err != nil { if err := os.MkdirAll(path, 0755); err != nil {