|
@@ -105,6 +105,11 @@ const fsMkdirIfNeeded = (dirPath: string): Promise<void> =>
|
|
|
const fsRename = (oldPath: string, newPath: string): Promise<void> =>
|
|
|
ipcRenderer.invoke("fsRename", oldPath, newPath);
|
|
|
|
|
|
+const fsRmdir = (path: string): Promise<void> =>
|
|
|
+ ipcRenderer.invoke("fsRmdir", path);
|
|
|
+
|
|
|
+const fsRm = (path: string): Promise<void> => ipcRenderer.invoke("fsRm", path);
|
|
|
+
|
|
|
// - AUDIT below this
|
|
|
|
|
|
// - Conversion
|
|
@@ -238,14 +243,6 @@ const readTextFile = (path: string): Promise<string> =>
|
|
|
const isFolder = (dirPath: string): Promise<boolean> =>
|
|
|
ipcRenderer.invoke("isFolder", dirPath);
|
|
|
|
|
|
-const moveFile = (oldPath: string, newPath: string): Promise<void> =>
|
|
|
- ipcRenderer.invoke("moveFile", oldPath, newPath);
|
|
|
-
|
|
|
-const fsRmdir = (path: string): Promise<void> =>
|
|
|
- ipcRenderer.invoke("fsRmdir", path);
|
|
|
-
|
|
|
-const fsRm = (path: string): Promise<void> => ipcRenderer.invoke("fsRm", path);
|
|
|
-
|
|
|
// - Upload
|
|
|
|
|
|
const getPendingUploads = (): Promise<{
|
|
@@ -359,7 +356,6 @@ contextBridge.exposeInMainWorld("electron", {
|
|
|
saveFileToDisk,
|
|
|
readTextFile,
|
|
|
isFolder,
|
|
|
- moveFile,
|
|
|
|
|
|
// - Upload
|
|
|
|