Skip to content

Skip the output file during directory scans#72

Closed
aiedwardyi wants to merge 1 commit intosimonw:mainfrom
aiedwardyi:skip_output_file_scan
Closed

Skip the output file during directory scans#72
aiedwardyi wants to merge 1 commit intosimonw:mainfrom
aiedwardyi:skip_output_file_scan

Conversation

@aiedwardyi
Copy link
Copy Markdown

Fixes #59.

When the output file lives inside the scanned directory, the current run can include that file in its own output. This skips the configured output path during traversal.

I added a regression test for writing to ./prompt.txt while scanning .

Verification
python -m pytest tests/test_files_to_prompt.py -k output_file_is_not_included_in_output

@aiedwardyi aiedwardyi closed this by deleting the head repository Mar 31, 2026
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.

Output file is self-referenced

1 participant