MCPcopy Create free account
hub / github.com/ddnet/ddnet / check_dir

Function check_dir

scripts/check_dilate.py:26–34  ·  view source on GitHub ↗
(dilate_path, directory)

Source from the content-addressed store, hash-verified

24
25
26def check_dir(dilate_path, directory):
27 errors = 0
28 for file in os.listdir(directory):
29 path = os.path.join(directory, file)
30 if os.path.isdir(path):
31 errors += check_dir(dilate_path, path)
32 elif file.endswith(".png"):
33 errors += check_file(dilate_path, path)
34 return errors
35
36
37def main(arguments):

Callers 1

mainFunction · 0.70

Calls 1

check_fileFunction · 0.70

Tested by

no test coverage detected