mirror of
https://gitee.com/openharmony/filemanagement_app_file_service
synced 2024-11-27 10:10:36 +00:00
修正编码规范格式
Change-Id: Ifae824713eb876e7dcb86787bcdbeb39fa9b6693 Signed-off-by: huaqingsimeng <qiukaiqing@huawei.com>
This commit is contained in:
parent
0a52976061
commit
ff171c334f
@ -109,7 +109,7 @@ tuple<ErrCode, TmpFileSN, UniqueFd> ServiceProxy::GetFileOnServiceEnd()
|
||||
}
|
||||
|
||||
HILOGI("Successful");
|
||||
return {reply.ReadInt32(),reply.ReadUint32(),UniqueFd(reply.ReadFileDescriptor())};
|
||||
return {reply.ReadInt32(), reply.ReadUint32(), UniqueFd(reply.ReadFileDescriptor())};
|
||||
}
|
||||
|
||||
ErrCode ServiceProxy::PublishFile(const BFileInfo &fileInfo)
|
||||
|
@ -122,7 +122,7 @@ tuple<ErrCode, TmpFileSN, UniqueFd> Service::GetFileOnServiceEnd()
|
||||
TmpFileSN tmpFileSN = seed++;
|
||||
string tmpPath = string(SA_ROOT_DIR) + string(SA_TMP_DIR) + to_string(tmpFileSN);
|
||||
if (access(tmpPath.data(), F_OK) == 0) {
|
||||
//约束服务启动时清空临时目录,且生成的临时文件名必不重复
|
||||
// 约束服务启动时清空临时目录,且生成的临时文件名必不重复
|
||||
throw BError(BError::Codes::SA_BROKEN_ROOT_DIR, "Tmp file to create is existed");
|
||||
}
|
||||
UniqueFd fd(open(tmpPath.data(), O_RDWR | O_CREAT, 0600));
|
||||
|
Loading…
Reference in New Issue
Block a user