title: Get folder structure along with folder/file sizes in python
body: <p>After doing my research for this specific task I found at that most of the solution given for this kind of problem either return the list of all the files or the TOTAL size of the folder/file. </p>
  
  <p>What I am trying to achieve is get an output in the CSV file stating the folder structure i.e. folders - sub folders - files (optional) along with the size information for EACH. </p>
  
  <p>There is no specific format for the CSV. I just need to know the tree structure with the size of the folder/sub-folder. </p>
  
  <p>The reason behind this is that we are moving from physical servers to the cloud. In order to verify whether all the data was retained correctly during conversion I need to make a similar list of all SHARED DRIVES which can later be validated. </p>
  
  <p>Looking forward for meaningful insights. Thanks!</p>