2mol / 2mol/pboy

Paperboy overwrites files with duplicate names

Open
#6 11 comments 2 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Haskell
Stars
744
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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 😱.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.