Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max depth parameters to directory summarization functions #7

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

Maralai
Copy link
Owner

@Maralai Maralai commented Feb 1, 2025

Works to resolve #5

This pull request includes multiple changes to the summarizeGPT/summarizeGPT.py file to add new functionality for controlling the depth of directory traversal. The most important changes include adding new parameters to existing functions, updating the main function to handle these new parameters, and modifying the directory traversal logic to respect the specified depth limits.

Enhancements to depth control:

  • summarizeGPT/summarizeGPT.py: Added tree_depth and file_depth parameters to the summarize_directory and get_tree_view functions to limit the depth of directory traversal. [1] [2]
  • summarizeGPT/summarizeGPT.py: Updated get_file_contents function to include max_depth parameter and modified the traversal logic to skip directories exceeding the specified depth.
  • summarizeGPT/summarizeGPT.py: Updated the main function to add new command-line arguments (--max-depth, --tree-depth, --file-depth) and handle these arguments appropriately. [1] [2]

Copy link
Owner Author

@Maralai Maralai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

@Maralai Maralai merged commit dcc0eb6 into main Feb 1, 2025
1 check passed
@Maralai Maralai deleted the feature/levels branch February 1, 2025 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add -L flag for controlling directory depth levels in summarization
1 participant