socket.io function writeDirAsZip
Hi,
i want to use the writeDirAsZip-function of socket.io, but it does not work. I saw here: https://github.com/ioBroker/ioBroker.admin/blob/072da76e81271454ed8a819a7fdee0d2683ff9be/lib/socket.js#L1040 that it needs extra permissions.
Is there any chance to get this working? I wanted to provide someting like "design-packs" for iQontrol, which are meant to be zip-files with icons, images and design-settings in json-format, that the user should be able to upload.
Please retry with Admin 6 and new web
Hi, sorry for delay, it is still not working. The call
socket.emit('sendToHost', common.host, 'writeDirAsZip', {id: 'iqontrol.meta', name: path, data: base64Zip}, function(data){
callback(data.error || null, null);
});
returns ERR_INVALID_ARG_TYPE
common.host is "raspberrypi"
path is for example "/userfiles/"
Can you please give me a short example how to use writeDirAsZip??