title: How to create a recursive function to copy all files and folders
body: <p>I am trying to create a function that will recursively copy a source folder and all files and folders inside of it to a different location. </p>
  
  <p>At the moment, I have to define each folder within the main folder, which is making the code bloated and redundant. </p>
  
  <p>What's a more efficient way of doing this?</p>