in reply to How does rename() work on read-only files?
See also:
Thank you eyepopslikeamosquito, these links actually answer some of the questions I was about to post. Cool! :-)