github.com/kcmerrill/alfred@v0.0.0-20180727171036-06445dcb5e3d/pkg/alfred/dir.go (about)

     1  package alfred
     2  
     3  import "path/filepath"
     4  
     5  func (t *Task) dir(context *Context) (string, bool) {
     6  	if t.Dir != "" {
     7  		return mkdir(t.Dir, context)
     8  	}
     9  
    10  	return filepath.Clean(context.rootDir+"/") + "/", true
    11  }