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

changing os.rename to shutil.move on --format=dir parameter #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dutradda
Copy link

on os.rename I found two errors:
when dest directory is not empty raises: 'OSError: [Errno 39] Directory not empty'
but with shutil.move it overwrite the directory.

when dest dir is not in the same hd partition of /tmp raises: 'OSError: [Errno 18] Invalid cross-device link'
but with shutil.move it dont occurs.

by Diogo Dutra [email protected]

on os.rename I found two errors:
when dest directory is not empty raises: 'OSError: [Errno 39] Directory not empty'
but with shutil.move it overwrite the directory.

when dest dir is not in the same hd partition of /tmp raises: 'OSError: [Errno 18] Invalid cross-device link'
but with shutil.move it dont occurs.

by Diogo Dutra <[email protected]>
@dutradda
Copy link
Author

you already take a look on my fix? @mitsuhiko

@dutradda
Copy link
Author

@mitsuhiko can you merge my pull request?

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.

1 participant