MCPcopy
hub / github.com/opencloud-eu/opencloud / checkSpaces

Function checkSpaces

opencloud/pkg/command/posixfs.go:206–220  ·  view source on GitHub ↗
(basePath string)

Source from the content-addressed store, hash-verified

204}
205
206func checkSpaces(basePath string) {
207 dirEntries, err := os.ReadDir(basePath)
208 if err != nil {
209 spinner.Message(fmt.Sprintf("Error reading spaces directory '%s'\n", basePath))
210 spinner.StopFail()
211 return
212 }
213
214 for _, entry := range dirEntries {
215 if entry.IsDir() {
216 fullPath := filepath.Join(basePath, entry.Name())
217 checkSpace(fullPath)
218 }
219 }
220}
221
222func checkSpace(spacePath string) {
223 spinner.Message("")

Callers 1

checkPosixfsConsistencyFunction · 0.85

Calls 3

checkSpaceFunction · 0.85
ReadDirMethod · 0.65
NameMethod · 0.45

Tested by

no test coverage detected