1
0
mirror of https://github.com/jht5945/finding.git synced 2025-12-27 13:20:03 +08:00
This commit is contained in:
2020-04-30 01:01:17 +08:00
parent eefbb3d49e
commit 63afb268ef

View File

@@ -10,7 +10,7 @@ pub fn read_file_content(file: &Path, large_file_len: u64) -> XResult<String> {
return Err(new_box_error(&format!("File not exists: {:?}", file)));
}
if !file.is_file() {
return Err(new_box_error(&format!("File is not file: {:?}", file)));
return Err(new_box_error(&format!("File is not a file: {:?}", file)));
}
let file_len = file.metadata()?.len();
if file_len > large_file_len {