(path: string)
| 468 | } |
| 469 | |
| 470 | export const isDirectory = async (path: string): Promise<boolean> => { |
| 471 | try { |
| 472 | const stat = await fs.stat(path) |
| 473 | return stat.isDirectory() |
| 474 | } catch (error) { |
| 475 | return false |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Escapes any HTML string special characters, like &, <, >, ", and '. |
no outgoing calls
no test coverage detected