Normalize File Deletion Logic
Open
Beginner friendly
bug
enhancement
- Dominant language
- Python
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Description:
Currently, file deletion fails if the user does not type .txt manually. Make the delete logic smart enough to:
Check and append .txt if not already present.
Allow deletion by typing just the base name.
Expected Behavior:
Enter file name to delete: notes
→ Deletes notes.txt (if exists)
Contributor guide
No contributing guide indexed for this repository
Research direction
Look for the file deletion function in the codebase, likely in a main CLI script. The logic should check if the input filename ends with '.txt'; if not, append it before attempting deletion. Test by running the program and trying to delete a file with and without the extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100