github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/os/path.go (about)

     1  package os
     2  
     3  import (
     4  	"path/filepath"
     5  )
     6  
     7  func MakeAbs(path string, root string) string {
     8  	if filepath.IsAbs(path) {
     9  		return path
    10  	}
    11  	return filepath.Join(root, path)
    12  }