Skip to content

Fix: Move directory to existing dir specifiying REPLACE_EXISTING#179

Merged
infeo merged 6 commits intodevelopfrom
feature/176-ignore-dirid
Aug 9, 2023
Merged

Fix: Move directory to existing dir specifiying REPLACE_EXISTING#179
infeo merged 6 commits intodevelopfrom
feature/176-ignore-dirid

Conversation

@infeo
Copy link
Member

@infeo infeo commented Aug 9, 2023

Fixes #176.

Additionally, I changed the execution order when deleting fs nodes of the move target. Now, we first delete the directory link and only then the now orphaned content dir is deleted. The reasoning is: An orphaned directory can be recovered, while a broken directory link cannot be repaired.

Co-authored-by: Sebastian Stenzel <overheadhunter@users.noreply.github.com>
@infeo infeo requested a review from overheadhunter August 9, 2023 14:13
@infeo infeo merged commit cd42970 into develop Aug 9, 2023
@infeo infeo deleted the feature/176-ignore-dirid branch August 9, 2023 15:10
@tobihagemann tobihagemann added this to the 2.6.7 milestone Aug 10, 2023
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.

DirectoryNotEmptyException when moving directory with REPLACE_EXISTING set

3 participants