Skip to content

"Keep both" on paste picks a name another pasted item already uses; that item isn't copied #3661

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

"Keep both" on paste picks a name another pasted item already uses; that item isn't copied. Cause: packages/web-pkg/src/helpers/resource/conflictHandling/transfer.ts:149-151 resolves the new name only against existing target items, not against names already planned in the same batch.

Reproduction Steps

  1. src/ contains a.txt and a (1).txt; dst/ contains a.txt.
  2. Copy both files from src, paste into dst, choose "Keep both".

Expected Outcome

a.txt, a (1).txt and a (2).txt in dst.

Actual Outcome

a.txt is copied as a (1).txt, then the copy of the original a (1).txt fails with COPY 500; the toast names the wrong file.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions