Skip to content

swap out os.rename for shutil.move as it can handle diff filesystems#5

Open
andyfase wants to merge 6 commits into
redsymbol:masterfrom
andyfase:master
Open

swap out os.rename for shutil.move as it can handle diff filesystems#5
andyfase wants to merge 6 commits into
redsymbol:masterfrom
andyfase:master

Conversation

@andyfase

@andyfase andyfase commented Mar 5, 2017

Copy link
Copy Markdown

As per https://docs.python.org/3/library/os.html#os.rename

"The operation may fail on some Unix flavors if src and dst are on different filesystems."

I came across this trying to use csv2parquet across different mounts on a linux system, swapping to shutil.move fixed my issues and seems to be a more robust move operation.

@sebastiw

sebastiw commented Jul 8, 2019

Copy link
Copy Markdown

I'm having the same problem, switching out to shutil.move helped. Please accept and merge :)

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.

4 participants