7xGit / 7xGit/7xGit_Task4

Normalize File Deletion Logic

未关闭 适合新手
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug enhancement
主要语言
Python
星标
1
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
75/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。