INNER CODE UNIT · TypeScript

getPersistentFilename

OutlineFoundation/outline-server · src/shadowbox/server/main.ts:265

function getPersistentFilename(file: string): string {
  const stateDir = process.env.SB_STATE_DIR || DEFAULT_STATE_DIR;
  return path.join(stateDir, file);
}

function getBinaryFilename(file: string): string {
  const binDir = path.join(APP_BASE_DIR, 'bin');
  return path.join(binDir, file);
}

process.on('unhandledRejection', (error: Error) => {
  logging.error(`unhandledRejection: ${error.stack}`);
});

main().catch((error) => {
  logging.error(error.stack);
  process.exit(1);
});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…