mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 05:19:23 +08:00
refactoring
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user