* Get a file record by path
(filePath: string)
| 4361 | * Get a file record by path |
| 4362 | */ |
| 4363 | getFileByPath(filePath: string): FileRecord | null { |
| 4364 | if (!this.stmts.getFileByPath) { |
| 4365 | this.stmts.getFileByPath = this.db.prepare('SELECT * FROM files WHERE path = ?'); |
| 4366 | } |
| 4367 | const row = this.stmts.getFileByPath.get(filePath) as FileRow | undefined; |
| 4368 | return row ? rowToFileRecord(row) : null; |
| 4369 | } |
| 4370 | |
| 4371 | /** |
| 4372 | * Whether any tracked file lives under the project-relative POSIX directory |
no test coverage detected