// In renderer process
ipcRenderer.on('epm-uninstalled-is-number', (event, err) => {
// ...
});
ipcRenderer.send('epm-uninstall', dir, 'is-number');
// Response sent to `epm-uninstalled-${name}` channel where `name` is the plugin name
Exactly using that syntax, and my plugins directory is "plugins", and had other plugins in it. But this command deleted the entire plugs directory (and all plugins!).
I am unable to reproduce this. Did you send ipcRenderer.send('epm-uninstall', dir, '')? That would delete the whole plugins folder. I am going to add tests to make sure plugins folder exist after deleting.
Hi, found a new one today. I am doing this:
Exactly using that syntax, and my plugins directory is "plugins", and had other plugins in it. But this command deleted the entire plugs directory (and all plugins!).