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

folders called data skipped #33

Open
steelep opened this issue Aug 20, 2024 · 1 comment
Open

folders called data skipped #33

steelep opened this issue Aug 20, 2024 · 1 comment

Comments

@steelep
Copy link

steelep commented Aug 20, 2024

Issue:
If you have a folder called "data" in your target repo code2prompt will skip it even if it contains relevant files.

To replicate: 
> my_repo
> ├── folder_a
> │   ├── foo.py
> │   └── bar.rs
> ├── data
> │   ├── alice.py
> │   ├── bob.py
> 

Running: code2prompt /home/user_name/code/my_repo/ --include="*.py, *.rs" --output=./output.txt --tokens

Results in ./output.txt of: 
> my_repo
> ├── folder_a
> │   ├── foo.py
> │   └── bar.rs

home/user_name/code/my_repo/foo.py
....

home/user_name/code/my_repo/bar.rs
....

Where alice.py + bob.py files are missing, if I change the name of the folder to data_x or something, both formerly missing files will appear...

@mufeedvh
Copy link
Owner

Thank you for opening this issue @steelep. Is the "data" folder/directory in your .gitignore file by any chance?

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

No branches or pull requests

2 participants