title: Python- Get AWS Bucket Key from Path
body: <p>Given that I have something like this: </p>
  
  <pre><code>"s3://folder1/folder2/folder3/folder4/folder4.5/folder4.6/folder5/folder6/folder7/file_name.csv"
  </code></pre>
  
  <p>How do I parse it out so that I get the Bucket and then the Key as everything minus the last/ with the filename? </p>
  
  <p>I am trying to get the path so that I can list all the files within the path. </p>