(path)
| 1 | import os |
| 2 | |
| 3 | def get_docs(path): |
| 4 | docs = [] |
| 5 | for dirpath,dirnames,filenames in os.walk(path): |
| 6 | for filename in filenames: |
| 7 | docs.append(os.path.join(dirpath,filename)) |
| 8 | return [i for i in docs if i[-3:] == '.md'] |
| 9 | |
| 10 | print(get_docs('./')) |