Skip to content

Commit

Permalink
Fix recursive paste folder into folder issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Jul 28, 2022
1 parent 44d8507 commit 60ff297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-app-files/src/helpers/resource/copyMove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const resolveAllConflicts = async (

const hasRecursion = (resourcesToMove: Resource[], targetResource: Resource): boolean => {
return resourcesToMove.some((resource: Resource) =>
targetResource.webDavPath.startsWith(resource.webDavPath)
targetResource.webDavPath.endsWith(resource.webDavPath)
)
}

Expand Down

0 comments on commit 60ff297

Please sign in to comment.