Add more comments

Signed-off-by: Akash Shinde <akashshinde159@gmail.com>
pull/6268/head
Akash Shinde 6 years ago
parent 5088292718
commit 6a04c9374f

@ -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 {

Loading…
Cancel
Save