added option for logging file permission when copying failed