Python: Get Folder containing specific files extension
<p>I'm trying to find how to get a folder list that contains a specific file extension and that will gave me only the folder and containing only unique folder. And the fastest way.</p>

<p>Is there a one liner for that?</p>

<p>so if I have<br>
c:\folderA\test1.tga<br>
c:\folderA\test2.tga<br>
c:\folderA\test3.tga<br>
c:\folderB\test4.tga  </p>

<p>I want<br>
c:\folderA\<br>
c:\folderB\  </p>

<p>cheers</p>
