7xGit / 7xGit/7xGit_Task4

Normalize File Deletion Logic

Open Beginner friendly
#1 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.