> That was my intention, but I wanted to have external opinion before > spending time on it. The attached patch implements the low-level > file copy mechanism (with permissions and times preserving). If this > is OK, then it's possible to implement copyfile/movefile based on it.
This more elaborated version also implements recursive copy of directories. What's not handled yet is cyclic copy detection.