Skip to content

Conversation

althonos
Copy link
Member

Type of changes

  • Bug fix
  • New feature
  • Tests

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added updated tests for new code.
  • I accept that @PyFilesystem/maintainers may be pedantic in the code review.

Description

As discussed with @lurch in #547, this PR makes all self-move operations raise IllegalDestination instead of being silent. In fs.move.move_file, DestinationExists takes priority if overwrite is False.

@althonos althonos added the bug label Aug 19, 2022
@althonos althonos requested a review from lurch August 19, 2022 13:24
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 94.811% when pulling ef508c2 on illegal-self-move into 59f6e4d on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants