new: added fileExists function to the session scripting runtime

This commit is contained in:
Simone Margaritelli 2022-06-10 23:38:48 +02:00
commit 11d96069ae
2 changed files with 31 additions and 3 deletions

View file

@ -312,6 +312,7 @@ func (s *Session) Start() error {
// js and session
plugin.Defines["env"] = jsEnvFunc
plugin.Defines["run"] = jsRunFunc
plugin.Defines["fileExists"] = jsFileExistsFunc
plugin.Defines["loadJSON"] = jsLoadJSONFunc
plugin.Defines["saveJSON"] = jsSaveJSONFunc
plugin.Defines["onEvent"] = jsOnEventFunc