parameters: (filename)
return_statement: return all
docstring: Generates a list of files from the directory
docstring_summary: Generates a list of files from the directory
docstring_tokens: Generates a list of files from the directory
function: def ReadImages(filename):
      '''Generates a list of files from the directory'''
      print("Searching directory %s" % dir)
      all = []
      left_files = []
      right_files = []
      files = os.listdir(filename)
      for f in sorted(files):
          if os.path.splitext(f)[1] in ['.bmp', '.png', '.jpg', '.pgm']:
              '''
              if 'left' in f or 'left' in path:
                  left_files.append(os.path.join(path, f))
              elif 'right' in f or 'right' in path:
                  right_files.append(os.path.join(path, f))
              '''
              all.append(os.path.join(filename, f))
      return all
function_tokens: def ReadImages ( filename ) : print ( "Searching directory %s" % dir ) all = [ ] left_files = [ ] right_files = [ ] files = os . listdir ( filename ) for f in sorted ( files ) : if os . path . splitext ( f ) [ 1 ] in [ '.bmp' , '.png' , '.jpg' , '.pgm' ] : '''
              if 'left' in f or 'left' in path:
                  left_files.append(os.path.join(path, f))
              elif 'right' in f or 'right' in path:
                  right_files.append(os.path.join(path, f))
              ''' all . append ( os . path . join ( filename , f ) ) return all