[erlang-bugs] Copying a file to itself

John Hughes john.hughes@REDACTED
Fri Feb 29 10:31:39 CET 2008


Calling file:copy(Name,Name) to copy a file to itself truncates the file to
0 bytes. I'm not sure if this is a bug, but it isn't what I expected-even
after reading the documentation. Perhaps either file:copy should return an
error in this case, or the documentation should mention this behaviour
explicitly.

 

John Hughes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080229/8859b52e/attachment.htm>


More information about the erlang-bugs mailing list