MCPcopy Create free account
hub / github.com/kataras/iris / getRootDirName

Function getRootDirName

view/fs.go:66–76  ·  view source on GitHub ↗
(fileSystem fs.FS)

Source from the content-addressed store, hash-verified

64}
65
66func getRootDirName(fileSystem fs.FS) string {
67 rootDirFile, err := fileSystem.Open(".")
68 if err == nil {
69 rootDirStat, err := rootDirFile.Stat()
70 if err == nil {
71 return rootDirStat.Name()
72 }
73 }
74
75 return ""
76}

Callers 4

LoadMethod · 0.85
loadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85

Calls 3

NameMethod · 0.65
OpenMethod · 0.45
StatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…