7xGit / 7xGit/7xGit_Task4

Whitespace in Filenames Causes Issues

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
90/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.