title: Bulk Uploading to MediaWiki (Hierarchical Structure)
body: <p>I have lots of Markdown files each contained in a folder with the same name as Markdown file. I use Pandoc to generate the MediaWiki file in <code>Rendered</code> folder.</p>
  
  <p>For Example</p>
  
  <pre><code>ComputerScience
    |
    ComputerScience.md
    |
    Rendered
    |  | 
    |  ComputerScience.wiki
    Image
    |  |
    |  Computer.png
    Resource
       |
       Algorithms.pdf
  </code></pre>
  
  <p>Every Markdown file has its own folder which contains other folders like <code>Image</code>, <code>Resource</code>, which are linked in the markdown file. To explain my structure: let me call the above structure as <code>ComputerScience Container</code>. Each markdown file has this <code>container</code>. These containers are classified in a hierarchical way - Several such containers can exist in a Folder (which I call here as, SuperFolder). These SuperFolder can Contain another SuperFolder. For example (The markdown folders are mentioned as Container):</p>
  
  <pre><code>Computer Science
    |
    Computer Science Container
    |
    Algorithms
    |  |
    |  Algorithms Container
    |  |
    |  DataStructure Container
    Architecture Container
  </code></pre>
  
  <p>In above Computer Science Super Folder consist of Containers as well as another SuperFolder called Algorithms.</p>
  
  <p>How can I upload this kind of hierarchical structure into local mediawiki?</p>
  
  <p>Also, I would like to edit Markdown files and generate the updated MediaWiki files. I hope to update the Mediawiki files using a script.</p>
  
  <p>Any suggestions on how should I approach this?</p>