Hello, I have created an express server and a bundled react app for my brightsign player. In addition I have each of these running via my autorun.brs. I am making a request from react to the express server to download a zip file from an external endpoint and unzip it. I am able to successfully download the file, but then I am getting the following error:
[ 63.088] finished downloading
[ 63.260] start unzip
[ 63.573] internal/fs/utils.js:314
[ 63.573] throw err;
[ 63.573] ^
[ 63.573]
[ 63.573] Error: EPERM: operation not permitted, chmod '/storage/sd/media/slides/133444725423.png'
[ 63.573] at Object.chmodSync (fs.js:1320:3)
[ 63.573] at Utils.writeFileTo (/storage/sd/node_modules/adm-zip/util/utils.js:89:13)
[ 63.573] at /storage/sd/node_modules/adm-zip/adm-zip.js:616:27
[ 63.573] at Array.forEach (<anonymous>)
[ 63.573] at Object.extractAllTo (/storage/sd/node_modules/adm-zip/adm-zip.js:604:26)
[ 63.573] at WriteStream.<anonymous> (/storage/sd/app.js:66:11)
[ 63.573] at WriteStream.emit (events.js:400:28)
[ 63.573] at finish (internal/streams/writable.js:657:10)
[ 63.573] at finishMaybe (internal/streams/writable.js:644:9)
[ 63.573] at internal/streams/writable.js:617:7 {
[ 63.573] errno: -1,
[ 63.573] syscall: 'chmod',
[ 63.573] code: 'EPERM',
I do not believe this linux distribution has the chmod command. My main question is... does it have chmod and is there a way I can give this script permission to run it? or more likely, does anyone know of a js lib that can unzip archives without calling chmod?