7xGit / 7xGit/7xGit_Task4

Whitespace in Filenames Causes Issues

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

描述

Description:
User inputs (e.g., file or folder names) may have leading or trailing spaces, causing unexpected behavior like file not found or duplicate creation.

Expected:
Use .strip() for every user input() to clean up whitespace.

Tasks:

Apply .strip() to all inputs.

Test folder and file creation using spaced inputs.

贡献指南

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

调研方向

Find all uses of `input()` in the codebase and apply `.strip()` to the result. Look for file and folder creation functions to test with inputs containing leading/trailing spaces. Run the existing tests or create a simple script to verify the fix prevents duplicate creation and 'file not found' errors.

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

评估

技术栈
python
领域
cli
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
90/100

把新 issue 发到你的邮箱

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