electron-main: No need to normalize the path.
This commit is contained in:
parent
0813aff1bd
commit
b17a403bcd
|
@ -253,10 +253,9 @@ ipcMain.on('seshat', async function(ev, payload) {
|
||||||
|
|
||||||
case 'initEventIndex':
|
case 'initEventIndex':
|
||||||
if (eventIndex === null) {
|
if (eventIndex === null) {
|
||||||
let p = path.normalize(eventStorePath);
|
|
||||||
try {
|
try {
|
||||||
await afs.mkdir(p, {recursive: true});
|
await afs.mkdir(eventStorePath, {recursive: true});
|
||||||
eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"});
|
eventIndex = new Seshat(eventStorePath, {passphrase: "DEFAULT_PASSPHRASE"});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
sendError(payload.id, e);
|
sendError(payload.id, e);
|
||||||
return;
|
return;
|
||||||
|
@ -277,7 +276,7 @@ ipcMain.on('seshat', async function(ev, payload) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await deleteFolderRecursive(path.normalize(eventStorePath));
|
await deleteFolderRecursive(eventStorePath);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue