(
relPath: string,
name: string,
absPath: string,
dirent: import('node:fs').Dirent,
withMimeAndBinary: boolean,
)
| 486 | } |
| 487 | |
| 488 | async function buildFsEntry( |
| 489 | relPath: string, |
| 490 | name: string, |
| 491 | absPath: string, |
| 492 | dirent: import('node:fs').Dirent, |
| 493 | withMimeAndBinary: boolean, |
| 494 | ): Promise<FsEntry> { |
| 495 | let st: import('node:fs').Stats | undefined; |
| 496 | try { |
| 497 | st = await fs.lstat(absPath); |
| 498 | } catch { |
| 499 | |
| 500 | } |
| 501 | return buildFsEntryFromDirentAndStat( |
| 502 | relPath, |
| 503 | name, |
| 504 | absPath, |
| 505 | dirent, |
| 506 | st, |
| 507 | withMimeAndBinary, |
| 508 | ); |
| 509 | } |
| 510 | |
| 511 | function buildFsEntryFromDirentAndStat( |
| 512 | relPath: string, |
no test coverage detected