( filePath: string, data: string | Buffer, encoding?: BufferEncoding )
| 267 | * Wrapper around fs.appendFile that validates path first |
| 268 | */ |
| 269 | export async function appendFile( |
| 270 | filePath: string, |
| 271 | data: string | Buffer, |
| 272 | encoding?: BufferEncoding |
| 273 | ): Promise<void> { |
| 274 | const validatedPath = validatePath(filePath); |
| 275 | return executeWithRetry( |
| 276 | () => fs.appendFile(validatedPath, data, encoding), |
| 277 | `appendFile(${filePath})` |
| 278 | ); |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * Wrapper around fs.rename that validates both paths first |
nothing calls this directly
no test coverage detected