• Retrieves the JSON structure from the repository directory, excluding paths specified in .gitignore and additional ignored paths.

    Parameters

    • dir: string

      The directory path.

    • Optionalgitignore_path: string

      Optional path to the .gitignore file.

    • Optionaladditional_ignored_paths: string[]

      Optional array of additional relative paths to be ignored.

    Returns Result

    The JSON structure of the directory, folders, and files objects indicating parsed and skipped items.