title: How to create a csv file from a folder?
body: <p>So my folder structure looks like this</p>
  <pre><code>MP_Data
  |___dir1
  |   | 0
  |     |___ 0.npy
  |     |___ 1.npy
  |     .
  |     .
  |     29
  |   | 1
  |     |___ 0.npy
  |     |___ 1.npy
  |     .
  |     .
  |     29
  |   .
  |   .
  |   29
  |___dir2
  |   | 0
  |     |___ 0.npy
  |     |___ 1.npy
  |     .
  |     .
  |     29
  |   | 1
  |     |___ 0.npy
  |     |___ 1.npy
  |     .
  |     .
  |     29
  |   .
  |   .
  |   29
  |___dir3
  |   | 0
  |     |___ 0.npy
  |     |___ 1.npy
  |     .
  |     .
  |     29
  |   | 1
  |     |___ 0.npy
  |     |___ 1.npy
  |     .
  |     .
  |     29
  |   .
  |   .
  |   29
  </code></pre>
  <p>So I need csv file for including dataset for creating model for deploying it using flask. The csv file should contain all the data present inside the MP_Data folder. I am super new to flask so I've no clue how to do this, can anyone pls help me?</p>