#NEWLINE# def _paths_in_directory( self , directory , incl_subdirs = False ) : #NEWLINE# #INDENT# assert self . is_directory ( incl_subdirs ) #NEWLINE# pattern = os . path . join ( directory , '*' ) #NEWLINE# result = glob . glob ( pattern ) #NEWLINE# subdir_pattern = os . path . join ( directory , '*' , '*' ) #NEWLINE# subdir_result = ( glob . glob ( subdir_pattern ) if incl_subdirs else [ ] ) #NEWLINE# return ( result + subdir_result )