Find all paths of files with suffixes
()
| 262 | |
| 263 | |
| 264 | def find_all_paths() -> List[str]: |
| 265 | """Find all paths of files with suffixes""" |
| 266 | paths = [] |
| 267 | for root, _, files in os.walk(os.getcwd()): |
| 268 | for file in files: |
| 269 | path = root + "/" + file |
| 270 | if "node_modules" in path or "__pycache__" in path or ".git" in path: |
| 271 | continue |
| 272 | if any(path.endswith(f".{suf}") for suf in suffixes): |
| 273 | paths.append(path) |
| 274 | return paths |
| 275 | |
| 276 | |
| 277 | def format_inline_code(path: str): |