jonschlinkert / copy

Copy files using glob patterns. Sync, async, promise or streams. (node.js utility)
MIT License
94 stars 125 forks source link

File permissions are not preserved #27

Open achingbrain opened 6 years ago

achingbrain commented 6 years ago

Making a file executable then using copy on it does not copy the executable bit:

$ touch foo.sh
$ chmod +x foo.sh 
$ ls -l foo.sh
-rwxr-xr-x  1 me  1002642239  0 30 Oct 17:25 foo.sh
$ ./node_modules/.bin/copy-cli foo.sh out
✔ out/foo.sh
$ ls -l out
total 0
-rw-r--r--  1 me  1002642239  0 30 Oct 17:48 foo.sh