(client, sessionID, directory, options = {})
| 860 | async function fileContains(filePath, needle) { |
| 861 | try { |
| 862 | const stat = await fs.stat(filePath) |
| 863 | if (!stat.isFile() || stat.size > MAX_SCAN_BYTES) return false |
| 864 | return (await fs.readFile(filePath, "utf8")).includes(needle) |
| 865 | } catch { return false } |
| 866 | } |
| 867 |
no test coverage detected