nodes: 0, module; 1, function_definition; 2, function_name:list; 3, parameters; 4, block; 5, identifier:path; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, expression_statement; 11, expression_statement; 12, if_statement; 13, expression_statement; 14, return_statement; 15, identifier:ext; 16, None; 17, identifier:start; 18, None; 19, identifier:stop; 20, None; 21, identifier:recursive; 22, False; 23, comment:"""
          Get sorted list of file paths matching path and extension
          """; 24, assignment; 25, comparison_operator:len(files) < 1; 26, block; 27, assignment; 28, identifier:files; 29, identifier:files; 30, conditional_expression:listflat(path, ext) if not recursive else listrecursive(path, ext); 31, call; 32, integer:1; 33, raise_statement; 34, identifier:files; 35, call; 36, call; 37, not_operator; 38, call; 39, identifier:len; 40, argument_list; 41, call; 42, identifier:select; 43, argument_list; 44, identifier:listflat; 45, argument_list; 46, identifier:recursive; 47, identifier:listrecursive; 48, argument_list; 49, identifier:files; 50, identifier:FileNotFoundError; 51, argument_list; 52, identifier:files; 53, identifier:start; 54, identifier:stop; 55, identifier:path; 56, identifier:ext; 57, identifier:path; 58, identifier:ext; 59, binary_operator:'Cannot find files of type "%s" in %s'
                                      % (ext if ext else '*', path); 60, string:'Cannot find files of type "%s" in %s'; 61, tuple; 62, conditional_expression:ext if ext else '*'; 63, identifier:path; 64, identifier:ext; 65, identifier:ext; 66, string; 67, string_content:*
code: def list(path, ext=None, start=None, stop=None, recursive=False):
          """
          Get sorted list of file paths matching path and extension
          """
          files = listflat(path, ext) if not recursive else listrecursive(path, ext)
          if len(files) < 1:
              raise FileNotFoundError('Cannot find files of type "%s" in %s'
                                      % (ext if ext else '*', path))
          files = select(files, start, stop)
  
          return files