* Checks if a path exists synchronously. * @param {string} path The path to check * @returns {boolean}
(path)
| 369 | * @returns {boolean} |
| 370 | */ |
| 371 | existsSync(path) { |
| 372 | try { |
| 373 | this.statSync(path); |
| 374 | return true; |
| 375 | } catch { |
| 376 | return false; |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * Copies a file. |
no test coverage detected