Skip to content

Instantly share code, notes, and snippets.

View darrida's full-sized avatar

Ben Hammond darrida

  • Aurora, IL
  • 22:39 (UTC -05:00)
View GitHub Profile
@darrida
darrida / md_file_tree.py
Created December 4, 2019 23:35 — forked from elfnor/md_file_tree.py
Generate a file tree table of contents for a directory of markdown files
# -*- coding: utf-8 -*-
"""
Generate a file tree table of contents for a directory of markdown files
run from command line:
$ python md_file_tree.py
will generate a markdown index of all markdown files in the current working
directory and its sub folders and insert it into a file `index.md`.