Access to filesystem in a Mac App JSContext
问题 I am working on a Mac app that uses a JSContext for some functionality. It uses a call like this (where ctx is a JSContext ): let result: JSValue? = ctx.evaluateScript("someFunction")?.call(withArguments: [someArg1!, someArg2]) Inside the someFunction script, we need to parse a directory and determine whether it exists on the filesystem. Apple's JavaScriptCore API does not have filesystem access as far as I can tell. Is there some way I can have a function like this in swift: public static