MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / GetFilesCount

Function GetFilesCount

tools_en.py:418–421  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

416
417# Count files
418def GetFilesCount(path):
419 i = 0
420 for name in os.listdir(path): i += 1
421 return i
422
423
424# Clean system garbage

Callers

nothing calls this directly

Calls 1

listdirMethod · 0.80

Tested by

no test coverage detected