title: PySpark: Getting a directory from path string
body: <p>I have a string which is my current working directory which is something like &quot;Aw/Bt/Ce/Dr&quot;.
  I should search for the string &amp; retrieve &quot;Bt&quot;.</p>
  <p>Is there a way I could do that in PySpark.</p>
  <p>TIA, Jagan</p>