On 30/12/10 13:46, Henrique de Moraes Holschuh wrote:
Is there a code snippet or lib function that handles this properly?I don't know. I'd be interested in the answer, though :-)
I'm working on one under the MIT license. Will probably release it by the end of this week. Will also handle copying the permissions over and following symlinks.
Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com