Test this on a *nix machine. Create a file and use chmod to mark it as executable
Then use Lucee's directoryCopy() function to copy the contents of that folder to another folder.
If you look at the foo file on the file system, you'll see it is no longer executable. This is causing big issues in CommandBox where users may package executable binaries to be installed and the executable flags get dropped which makes the binaries non longer work once they're installed.
I have tested on Adobe CF 2016 and it DOES preserve the executable bits on the files as it should. Note, the java.nio.file.Files class has some nice helper methods to use here.
I've analyzed this ticket & confirmed the issue happened. If we copy the executable permission. file using directoryCopy(), the file looses the executable permission sames issue happens during zip the folder.