ashwin271 / ashwin271/treecraft
Comments in tree structure are included in filenames
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Description
When creating files from a tree structure that includes comments (like `main.py # FastAPI application`), the comment becomes part of the filename. This results in files being created with names like `main.py # FastAPI application` instead of just `main.py`.
#### Example input:
```
app/
├── main.py # FastAPI application instance
└── config.py # Configuration settings
```
#### Current output:
- Creates: `main.py # FastAPI application instance`
- Should create: `main.py`
Contributor guide
Research direction
No source file or test is named. Start by locating the code that parses tree lines and creates filenames, then reproduce the example with inline comments; done means comment text and surrounding spacing are excluded while directory and file names remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100