platform/node/quarantine
Type Aliases
Section titled “Type Aliases”ProgramRunner
Section titled “ProgramRunner”ProgramRunner = (
file,args) =>Promise<number|null>
Defined in: app/src/platform/node/quarantine.ts:4
Runs a program and tells its exit code, or null when it could not run.
Parameters
Section titled “Parameters”string
readonly string[]
Returns
Section titled “Returns”Promise<number | null>
Functions
Section titled “Functions”quarantine()
Section titled “quarantine()”quarantine(
path,agent,now,run?):Promise<boolean>
Defined in: app/src/platform/node/quarantine.ts:28
Marks a downloaded file as coming from the internet, as other browsers on macOS do, so Gatekeeper checks it before it opens. A file that has the mark already keeps its own.
Parameters
Section titled “Parameters”string
The downloaded file.
string
The name of the browser, which macOS shows when it asks about the file.
number
The current time, in milliseconds since the epoch.
ProgramRunner = runProgram
Runs a program; Node.js by default.
Returns
Section titled “Returns”Promise<boolean>
Whether the file has the mark now.