title: How to delete last path component of a String in Swift?
body: <p>I have a String <code>11/Passion/01PassionAwakening.mp3</code> and I need to delete the last path component <code>01PassionAwakening.mp3</code> in order to get <code>11/Passion</code>.</p>
  
  <p>How can I do this while saving both components?</p>