title: Get all sub directories that only contain files
body: <p>I have a path and I want to list the subdirectories under it, where each subdirectory doesn't contain any other directory. (Only those subdirectories which don't contain folders, but only files.)</p>
  
  <p>Any smart way to do so?</p>