Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
home_dir.go 240 B
Newer Older
package helpers

import (
Kamil Trzcinski's avatar
Kamil Trzcinski committed
	"github.com/docker/docker/pkg/homedir"
	"os"
)

func GetCurrentWorkingDirectory() string {
	dir, err := os.Getwd()
	if err == nil {
		return dir
	}
	return ""
}

func GetHomeDir() string {
Kamil Trzcinski's avatar
Kamil Trzcinski committed
	return homedir.Get()