Skip to content

Commit c924f06

Browse files
committed
Merge branch 'wrc-path-funcs' into 'main'
exposing path functions for wrc-jet-pack See merge request weblogic-cloud/weblogic-toolkit-ui!239
2 parents 4bf6f01 + 7bb1a18 commit c924f06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

electron/app/js/ipcRendererPreload.js

+5-1
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)