MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / FilePath

Function FilePath

internal/util/util.go:698–703  ·  view source on GitHub ↗
(pathParts ...string)

Source from the content-addressed store, hash-verified

696}
697
698func FilePath(pathParts ...string) string {
699 if len(pathParts) == 1 {
700 return filepath.FromSlash(pathParts[0])
701 }
702 return filepath.FromSlash(strings.Join(pathParts, ``))
703}
704
705func ReadFile(path string) ([]byte, error) {
706 return os.ReadFile(filepath.FromSlash(path))

Callers 15

mainFunction · 0.92
altsFilePathFunction · 0.92
loadUserByIdFunction · 0.92
InitUserIndexFunction · 0.92
IsUpToDateMethod · 0.92
RebuildMethod · 0.92
LoadUserFunction · 0.92
SearchOfflineUsersFunction · 0.92
SaveUserFunction · 0.92
DeleteUserFunction · 0.92
DoFilenameMigrationV1Function · 0.92
SaveMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestFilePathFunction · 0.68