Comment #2 on issue 1502 by mikko.ko...@gmail.com: OperatingSystem.Copy File sometimes fails when destination is removed during operation
http://code.google.com/p/robotframework/issues/detail?id=1502

This code seems to protect destination in my test case:

import shutil

def my_copy(source, destination):
    temp_file = destination+'.tmp'
    shutil.copy(source, temp_file)
    shutil.move(temp_file, destination)

just needs a better way to make the temp file.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to