mirror of
https://gitee.com/openharmony/filemanagement_user_file_service
synced 2024-11-23 07:20:41 +00:00
fix:code
Signed-off-by: zhouoaoteng <zhouaoteng@huawei.com>
This commit is contained in:
parent
576a0f148c
commit
6fb013eb5b
@ -203,7 +203,7 @@ static int RenameFile(const string &src, const string &dest)
|
||||
new uv_fs_t, fs_req_cleanup };
|
||||
if (!rename_req) {
|
||||
HILOG_ERROR("RenameFile: Failed to request heap memory.");
|
||||
return false;
|
||||
return ENOMEM;
|
||||
}
|
||||
int ret = uv_fs_rename(nullptr, rename_req.get(), src.c_str(), dest.c_str(), nullptr);
|
||||
if (ret < 0 && (string_view(uv_err_name(ret)) == "EXDEV")) {
|
||||
|
Loading…
Reference in New Issue
Block a user