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, default_parameter; 11, expression_statement; 12, expression_statement; 13, if_statement; 14, if_statement; 15, expression_statement; 16, if_statement; 17, expression_statement; 18, expression_statement; 19, return_statement; 20, identifier:filename; 21, None; 22, identifier:start; 23, None; 24, identifier:stop; 25, None; 26, identifier:recursive; 27, False; 28, identifier:directories; 29, False; 30, comment:"""
          List files specified by dataPath.
  
          Datapath may include a single wildcard ('*') in the filename specifier.
  
          Returns sorted list of absolute path strings.
          """; 31, assignment; 32, boolean_operator; 33, block; 34, identifier:filename; 35, block; 36, else_clause; 37, assignment; 38, not_operator; 39, block; 40, call; 41, assignment; 42, identifier:files; 43, identifier:path; 44, call; 45, not_operator; 46, identifier:recursive; 47, return_statement; 48, if_statement; 49, block; 50, identifier:files; 51, call; 52, identifier:directories; 53, expression_statement; 54, attribute; 55, argument_list; 56, identifier:files; 57, call; 58, identifier:uri_to_path; 59, argument_list; 60, identifier:filename; 61, call; 62, call; 63, block; 64, else_clause; 65, if_statement; 66, attribute; 67, argument_list; 68, assignment; 69, identifier:files; 70, identifier:sort; 71, identifier:select; 72, argument_list; 73, identifier:path; 74, identifier:listrecursive; 75, argument_list; 76, attribute; 77, argument_list; 78, expression_statement; 79, block; 80, boolean_operator; 81, block; 82, identifier:glob; 83, identifier:glob; 84, identifier:path; 85, identifier:files; 86, list_comprehension; 87, identifier:files; 88, identifier:start; 89, identifier:stop; 90, identifier:path; 91, attribute; 92, identifier:isdir; 93, identifier:path; 94, assignment; 95, expression_statement; 96, call; 97, not_operator; 98, expression_statement; 99, identifier:fpath; 100, for_in_clause; 101, if_clause; 102, identifier:os; 103, identifier:path; 104, identifier:path; 105, call; 106, assignment; 107, attribute; 108, argument_list; 109, identifier:directories; 110, assignment; 111, identifier:fpath; 112, identifier:files; 113, not_operator; 114, attribute; 115, argument_list; 116, identifier:path; 117, call; 118, attribute; 119, identifier:isdir; 120, identifier:path; 121, identifier:path; 122, call; 123, call; 124, attribute; 125, identifier:join; 126, identifier:path; 127, identifier:filename; 128, attribute; 129, argument_list; 130, identifier:os; 131, identifier:path; 132, attribute; 133, argument_list; 134, attribute; 135, argument_list; 136, identifier:os; 137, identifier:path; 138, attribute; 139, identifier:join; 140, call; 141, identifier:filename; 142, attribute; 143, identifier:join; 144, identifier:path; 145, string:"*"; 146, attribute; 147, identifier:isdir; 148, identifier:fpath; 149, identifier:os; 150, identifier:path; 151, attribute; 152, argument_list; 153, identifier:os; 154, identifier:path; 155, identifier:os; 156, identifier:path; 157, attribute; 158, identifier:dirname; 159, identifier:path; 160, identifier:os; 161, identifier:path
code: def list(path, filename=None, start=None, stop=None, recursive=False, directories=False):
          """
          List files specified by dataPath.
  
          Datapath may include a single wildcard ('*') in the filename specifier.
  
          Returns sorted list of absolute path strings.
          """
          path = uri_to_path(path)
  
          if not filename and recursive:
              return listrecursive(path)
  
          if filename:
              if os.path.isdir(path):
                  path = os.path.join(path, filename)
              else:
                  path = os.path.join(os.path.dirname(path), filename)
          else:
              if os.path.isdir(path) and not directories:
                  path = os.path.join(path, "*")
  
          files = glob.glob(path)
  
          if not directories:
              files = [fpath for fpath in files if not os.path.isdir(fpath)]
  
          files.sort()
          files = select(files, start, stop)
          return files