diff --git a/interfaces/kits/js/src/mod_fs/properties/copy_file.cpp b/interfaces/kits/js/src/mod_fs/properties/copy_file.cpp index 04ec8287e56551de47b01435143c027ecb8a2e2b..e6529ec2a933b4b5b16edf09194422c68a42542a 100644 --- a/interfaces/kits/js/src/mod_fs/properties/copy_file.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/copy_file.cpp @@ -93,6 +93,10 @@ static NError SendFileCore(FileInfo& srcFdg, FileInfo& destFdg, struct stat& sta HILOGE("The execution of the sendfile task was terminated, remaining file size %{public}zu", size); return NError(EIO); } + if (sendfile_req.get()->path != NULL) { + HILOGE(" path is not null"); + sendfile_req.get()->path = NULL; + } return NError(ERRNO_NOERR); }