MCPcopy
hub / github.com/AlistGo/alist / joinRemotePathWithBase

Function joinRemotePathWithBase

drivers/chunker/util.go:264–270  ·  view source on GitHub ↗
(baseMountPath, logicalPath string)

Source from the content-addressed store, hash-verified

262}
263
264func joinRemotePathWithBase(baseMountPath, logicalPath string) string {
265 logicalPath = utils.FixAndCleanPath(logicalPath)
266 if utils.PathEqual(logicalPath, "/") {
267 return utils.FixAndCleanPath(baseMountPath)
268 }
269 return path.Join(utils.FixAndCleanPath(baseMountPath), logicalPath)
270}
271
272func (d *Chunker) joinRemotePath(logicalPath string) string {
273 return joinRemotePathWithBase(d.RemotePath, logicalPath)

Callers 2

joinRemotePathMethod · 0.85

Calls 2

FixAndCleanPathFunction · 0.92
PathEqualFunction · 0.92

Tested by

no test coverage detected