[JBIDE-13320] replicating file permissions, too when copying files

When copying files, we now replicate file permissions, too (was: file
permissions were simply ignored)