Inconsistent file extension handling for .txt files
- 主要语言
- Python
- 星标
- 1
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
描述
Description:
If a user forgets to add .txt while reading, deleting, or creating a file, the program may not behave as expected. This leads to errors or duplicate files.
_Hint: Think about how the program could handle input when users enter a file name with or without the .txt extension._
贡献指南
这个仓库没有索引到贡献指南
调研方向
Look for functions that read, delete, or create files, likely in the main script or a file handling module. The hint suggests normalizing file names to ensure .txt is appended when missing. Start by searching for file operations like open(), os.remove(), or os.path.exists(). Write a helper function to add .txt if absent, then apply it consistently. Test by running the program with and without the extension.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100