def _get_sub_dirs(parent):
 return [child for child in os.listdir(parent) if os.path.isdir(os.path.join(parent, child))]

def _get_sub_dirs ( parent ) : return [ child for child in os . listdir ( parent ) if os . path . isdir ( os . path . join ( parent , child ) ) ]
returns a list of the child directories of the given parent directory .