MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / PathJoin

Function PathJoin

cli/pkg/common/path.go:72–74  ·  view source on GitHub ↗

使用当前系统分隔符,进行路径的拼接

(paths ...string)

Source from the content-addressed store, hash-verified

70
71// 使用当前系统分隔符,进行路径的拼接
72func PathJoin(paths ...string) string {
73 return strings.Join(paths, string(filepath.Separator))
74}
75
76// 路径组合,参数 os 可以是windows
77func filePathJoin(osType OSType, paths ...string) string {

Callers 1

getLogWriterFunction · 0.85

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected