(dirPath: string)
| 145 | * Safe to call on an existing directory — re-applies the ACL idempotently. |
| 146 | */ |
| 147 | export function mkdirSecure(dirPath: string): void { |
| 148 | fs.mkdirSync(dirPath, { recursive: true, mode: 0o700 }); |
| 149 | restrictDirectoryPermissions(dirPath); |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Reset the once-per-process warning gate. Test-only. |
no test coverage detected