MCPcopy Index your code
hub / github.com/g3n/engine / _filePath

Function _filePath

gui/assets/data.go:349–352  ·  view source on GitHub ↗
(dir, name string)

Source from the content-addressed store, hash-verified

347}
348
349func _filePath(dir, name string) string {
350 cannonicalName := strings.Replace(name, "\\", "/", -1)
351 return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
352}

Callers 1

RestoreAssetFunction · 0.85

Calls 1

SplitMethod · 0.80

Tested by

no test coverage detected