parameters: (dir_path, exp=None)
return_statement: return ret
docstring: Get all file paths recursively within the given path.
  
    This optionally will filter the output using the given regex.
  
    Args:
      dir_path: The string path to search.
      exp: A regex to match, can be None.
  
    Returns:
      An array of absolute paths to all the files.
docstring_summary: Get all file paths recursively within the given path.
docstring_tokens: Get all file paths recursively within the given path .
function: def get_all_files(dir_path, exp=None):
    """Get all file paths recursively within the given path.
  
    This optionally will filter the output using the given regex.
  
    Args:
      dir_path: The string path to search.
      exp: A regex to match, can be None.
  
    Returns:
      An array of absolute paths to all the files.
    """
    ret = []
    for root, _, files in os.walk(dir_path):
      for f in files:
        if not exp or exp.match(f):
          ret.append(os.path.join(root, f))
    ret.sort()
    return ret
function_tokens: def get_all_files ( dir_path , exp = None ) : ret = [ ] for root , _ , files in os . walk ( dir_path ) : for f in files : if not exp or exp . match ( f ) : ret . append ( os . path . join ( root , f ) ) ret . sort ( ) return ret