Port send file mapping tests

This commit is contained in:
Kovid Goyal
2023-04-29 09:17:14 +05:30
parent be7f276d3e
commit 55bbf175c6
5 changed files with 109 additions and 52 deletions

View File

@@ -33,6 +33,9 @@ func home_path() string {
}
func abspath(path string, use_home ...bool) string {
if filepath.IsAbs(path) {
return path
}
var base string
if len(use_home) > 0 && use_home[0] {
base = home_path()