Skip to content

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

Open
dutradda wants to merge 1 commit intomitsuhiko:masterfrom
dutradda:fixing_os.rename
Open

changing os.rename to shutil.move on --format=dir parameter#28
dutradda wants to merge 1 commit intomitsuhiko:masterfrom
dutradda:fixing_os.rename

Conversation

@dutradda
Copy link
Copy Markdown

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 dutradda@gmail.com

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 <dutradda@gmail.com>
@dutradda
Copy link
Copy Markdown
Author

you already take a look on my fix? @mitsuhiko

@dutradda
Copy link
Copy Markdown
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