开发者

copying file with shutil.copy2 in python creates file of zero Kbs

hi i am trying to copy a file using shutil.copy2 but it creates a file of zero Kb at the destination..i a开发者_如何学编程m using mac os 10.6.7 .The problem is not with all files but some specific files only .The problem is independent of the extension of file


Verify that you have proper read access to the source file as the user running the Python program. Unfortunately it seems copy() and copy2() don't return any error information.


I just had this issue and found your question and one other. I posted an "answer" on that one that might be helpful to anyone that finds your question, like I did.

Files are copied but size remains 0 KB using shutil.copy2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜