Skip to main content
read_first_line
yggdrasil
0.9.0
In yggdrasil::
api::
database::
backup
yggdrasil
::
api
::
database
::
backup
Function
read_
first_
line
Copy item path
Source
fn read_first_line(path: impl
AsRef
<
Path
>) ->
Result
<
String
>
Expand description
仅读取文件首行(用于签名校验,避免把整个备份文件读入内存)。