Skip to content

Commit 7bb1a18

Browse files
committed
exposing path functions for wrc-jet-pack
1 parent 4bf6f01 commit 7bb1a18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

electron/app/js/ipcRendererPreload.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ contextBridge.exposeInMainWorld(
264264
join: (...paths) => path.join(...paths),
265265
joinAndConvertToUnixPath: (...paths) => path.join(...paths).replaceAll('\\', '/'),
266266
delimiter: path.delimiter,
267-
isValidFileName: (fileName) => fsUtils.isValidFileName(fileName)
267+
isValidFileName: (fileName) => fsUtils.isValidFileName(fileName),
268+
// These three functions are used by wrc-jet-pack
269+
exists: (filePath) => fsUtils.exists(filePath),
270+
isFile: (filePath) => fsUtils.isFile(filePath),
271+
isDirectory: (filePath) => fsUtils.isDirectory(filePath)
268272
},
269273
'k8s': {
270274
getDockerFilePath: () => fsUtils.getExecutableFilePath('docker', exeMode),

0 commit comments

Comments
 (0)