()
| 211 | } |
| 212 | |
| 213 | private telemetryDir(): string { |
| 214 | const path = join(this.homeDir, 'telemetry'); |
| 215 | mkdirSync(path, { recursive: true, mode: 0o700 }); |
| 216 | try { |
| 217 | chmodSync(path, 0o700); |
| 218 | } catch { |
| 219 | // best effort on platforms that do not support chmod. |
| 220 | } |
| 221 | return path; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | export class TransientTelemetryError extends Error { |
no outgoing calls
no test coverage detected