code2prompt icon indicating copy to clipboard operation
code2prompt copied to clipboard

folders called data skipped

Open steelep opened this issue 1 year ago • 1 comments

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...

steelep avatar Aug 20 '24 21:08 steelep

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

mufeedvh avatar Aug 22 '24 04:08 mufeedvh