7xGit / 7xGit/7xGit_Task4

Inconsistent file extension handling for .txt files

Đang mở Phù hợp với người mới
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue
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:
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._

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

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.

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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
65/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.