Skip to content

Ignore file:copy and file:move on identical source and target paths#2658

Merged
ChristianGruen merged 2 commits intoBaseXdb:mainfrom
GuntherRademacher:#2652
Apr 30, 2026
Merged

Ignore file:copy and file:move on identical source and target paths#2658
ChristianGruen merged 2 commits intoBaseXdb:mainfrom
GuntherRademacher:#2652

Conversation

@GuntherRademacher
Copy link
Copy Markdown
Member

When the source and target of file:copy and file:move refer to the same directory, this executes forever, creating a deeply nested structure.

The change in this PR explicitly ignores this situation, in fact implementing what a comment in FileCopy.relocate already suggested.

@ChristianGruen ChristianGruen merged commit f84774e into BaseXdb:main Apr 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants