Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Use shutil.move for cross-device file renaming #116

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

junlysky
Copy link
Contributor

@junlysky junlysky commented Jun 5, 2024

Fix a small bug:OSError: [Errno 18] Invalid cross-device link.

os.rename only works if source and destination are on the same file system. Use shutil.move instead.

Description of proposed changes

Fixes #

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Fix a small bug:OSError: [Errno 18] Invalid cross-device link.

os.rename only works if source and destination are on the same file system. Use shutil.move instead.
HinetPy/client.py Outdated Show resolved Hide resolved
@seisman seisman changed the title Fix a small bug and update client.py BUG: Use shutil.move for cross-device file renaming Jun 5, 2024
@seisman seisman merged commit 14937fd into seisman:main Jun 5, 2024
1 of 12 checks 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