ragraf_live_read
版本: community 能力: search 操作页面: live_read
做什么
读取当前文件,并标出与索引的差异(功能需求 31)
解决什么问题
指出磁盘上的文件已经与索引不一致的地方。
如何调用
ragraf_live_read(path=…)
ragraf -p config/ragraf.yaml query live_read <path>
省略号处是代理传入的值;可选参数可以不传。
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| path | str | 必填 |
| start | int | None | None |
| end | int | None | None |
返回什么
changed_since_index, path, requested, sha256_index, sha256_now, text, total_lines