(e: unknown)
| 6 | import { isErrnoException } from '../../src/lib/errno-exception' |
| 7 | |
| 8 | const isBusyError = (e: unknown) => isErrnoException(e) && e.code === 'EBUSY' |
| 9 | |
| 10 | // Reimplementation of retry logic in rimraf: |
| 11 | // https://github.com/isaacs/rimraf/blob/8733d4c30078a1ae5f18bb6affe83c1eea0259b4/src/retry-busy.ts#L10 |
no test coverage detected