code2prompt
code2prompt copied to clipboard
folders called data skipped
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...
Thank you for opening this issue @steelep. Is the "data" folder/directory in your .gitignore file by any chance?