Open steelep opened 2 months ago
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
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...
Thank you for opening this issue @steelep. Is the "data" folder/directory in your .gitignore file by any chance?
.gitignore
Issue: If you have a folder called "data" in your target repo code2prompt will skip it even if it contains relevant files.
Running:
code2prompt /home/user_name/code/my_repo/ --include="*.py, *.rs" --output=./output.txt --tokens
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...