update stock api

This commit is contained in:
weisd
2024-09-25 15:27:23 +08:00
parent ad4a32762d
commit 4f1e31999d
5 changed files with 49 additions and 16 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ pub fn clone_disk_err(e: &DiskError) -> Error {
}
}
pub fn ioerr_to_err(e: io::Error) -> Error {
pub fn os_err_to_file_err(e: io::Error) -> Error {
match e.kind() {
io::ErrorKind::NotFound => Error::new(DiskError::FileNotFound),
io::ErrorKind::PermissionDenied => Error::new(DiskError::FileAccessDenied),