refactoring

This commit is contained in:
Chris Lu
2020-04-05 13:11:43 -07:00
parent 2d43f85577
commit 91da7057b1
9 changed files with 21 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"io"
"net/url"
"path/filepath"
"strconv"
"strings"
@@ -55,7 +54,7 @@ func (ce *CommandEnv) parseUrl(input string) (path string, err error) {
return
}
if !strings.HasPrefix(input, "/") {
input = filepath.ToSlash(filepath.Join(ce.option.Directory, input))
input = util.Join(ce.option.Directory, input)
}
return input, err
}