7xGit / 7xGit/7xGit_Task4

Whitespace in Filenames Causes Issues

Đang mở Phù hợp với người mới
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
1
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
90/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.