Cobertos / md2notion

A better Notion.so Markdown importer
MIT License
656 stars 66 forks source link

Ability to import folders / directories #39

Open pabloportugues opened 3 years ago

pabloportugues commented 3 years ago

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:

Cobertos commented 3 years ago

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)

Vadorequest commented 2 years ago

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