Skip to content
New issue

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

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

Already on GitHub? # to your account

ignore-existing=true doesn't work on Windows #5

Open
tlynn opened this issue Jul 11, 2010 · 1 comment
Open

ignore-existing=true doesn't work on Windows #5

tlynn opened this issue Jul 11, 2010 · 1 comment

Comments

@tlynn
Copy link

tlynn commented Jul 11, 2010

When dest exists, shutil.move calls shutil.copytree, calls os.makedirs, call os.mkdir(dest), which throws an error. This is on Windows, but it's in keeping with the docs for move, copytree and makedirs. The problem shows up on Windows because on other platforms shutil.move usually manages to use os.rename to implement the move. When src and dest are on different filesystems you'd probably get the same issue.

@domenkozar
Copy link
Member

Should be fixed with 0b9f58c, can you confirm?

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

No branches or pull requests

2 participants