MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / all_solution_file_paths

Function all_solution_file_paths

scripts/validate_solutions.py:38–48  ·  view source on GitHub ↗

Collects all the solution file path in the Project Euler directory

()

Source from the content-addressed store, hash-verified

36
37
38def all_solution_file_paths() -> list[pathlib.Path]:
39 """Collects all the solution file path in the Project Euler directory"""
40 solution_file_paths = []
41 for problem_dir_path in PROJECT_EULER_DIR_PATH.iterdir():
42 if problem_dir_path.is_file() or problem_dir_path.name.startswith("_"):
43 continue
44 for file_path in problem_dir_path.iterdir():
45 if file_path.suffix != ".py" or file_path.name.startswith(("_", "test")):
46 continue
47 solution_file_paths.append(file_path)
48 return solution_file_paths
49
50
51def get_files_url() -> str:

Callers 1

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected