md2notion icon indicating copy to clipboard operation
md2notion copied to clipboard

Ability to import folders / directories

Open pabloportugues opened this issue 4 years ago • 2 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

pabloportugues avatar Jul 07 '21 15:07 pabloportugues

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)

Cobertos avatar Jul 07 '21 20:07 Cobertos

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

Vadorequest avatar Oct 18 '22 14:10 Vadorequest