#NEWLINE# def list_files( * paths ) : #NEWLINE# #INDENT# full_path = os . path . join ( data_dir ( ) , * paths ) #NEWLINE# if ( not os . path . isdir ( full_path ) ) : #NEWLINE# #INDENT# raise DocumentNotFound ( 'No documents found' ) #NEWLINE# #UNINDENT# return [ from_file_format ( full_path ) for file in os . listdir ( full_path ) ]