* Get file stats without following symlinks. * * Use this when you need to know if something IS a symlink. * For size checks, prefer `stat` instead.
(worktreePath: string, filePath: string)
| 408 | * For size checks, prefer `stat` instead. |
| 409 | */ |
| 410 | async lstat(worktreePath: string, filePath: string): Promise<Stats> { |
| 411 | assertRegisteredWorktree(worktreePath); |
| 412 | const fullPath = resolvePathInWorktree(worktreePath, filePath); |
| 413 | return lstat(fullPath); |
| 414 | }, |
| 415 | |
| 416 | /** |
| 417 | * Check if a file exists within a worktree. |
no test coverage detected