Cobertos / md2notion

A better Notion.so Markdown importer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to import folders / directories

pabloportugues opened this issue · comments

Hey 👋 Thank you first of all for the great work you've done with this tool!

I managed to get it to work, but it lacked something which is quite particular to my use case, that is, I've markdown files distributed in a folder structure (like a tree structure), so when I try to import, I get an error stating that I'm specifying a directory.

Question then is: is there a way I could import a directory?

An example structure:

  • main folder
    • file1.md
    • file2.md
    • sub-folder
      • file3.md
      • sub-folder
        • file4.md

Currently there is not a way to do this.

If you want to upload a whole directory w/ nested pages, you'd have to walk the filesystem tree and upload pages in a recursive way (directories mapping to blank pages, .md files or a glob or whatever mapping to nested pages)

I'd need the same feature, pretty common use case when importing stuff :/