-
-
Notifications
You must be signed in to change notification settings - Fork 285
Open
Description
We have cordova hooks in our source folder (see the cordova hooks guide for more info: https://cordova.apache.org/docs/en/dev/guide/appdev/hooks/) that need to be copied into our destination folder and need to preserve the executable bit on their file mode (i.e. ls -l
should print -rwxr-xr-x
for these files).
Currently this doesn't happen, but it seems like it should be easy to do by passing a options object as a 3rd parameter to the to the fs.writeFileAsync()
call in the writeFilePromises
with the stat.mode
from the fs.statAsync()
call.
lixiaoyan, matheussampaio, j0k3r, wouterb, AndrewKvalheim and 19 more