2mol / 2mol/pboy

Paperboy overwrites files with duplicate names

Đang mở
#6 11 bình luận 2 reaction 0 người được giao Xem trên GitHub
enhancement good first issue
Ngôn ngữ chính
Haskell
Star
744
Fork
22
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

If you accept the name suggestion from paperboy, it will happily overwrite any files that happen to have that name in the library folder. Luckily in this case it was overwriting another copy of the same paper but it would be nice to have overwrite safeguards.

Reproduction:

1. Create multiple copies of a pdf in Inbox folder
2. Move them to library with the same name
3. Watch duplicates vanish 😱.

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 the file move/rename logic in the codebase, likely in a module handling file operations. The issue is about duplicate name handling during import from the Inbox to the library. Check how filenames are generated and if there's existing collision detection. A test case should be added to verify the fix prevents overwriting.

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

Đánh giá

Công nghệ
haskell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
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
45/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.