mirror of
https://gitee.com/openharmony/filemanagement_user_file_service
synced 2024-11-23 07:20:41 +00:00
commit
c2785f1c5c
@ -219,6 +219,7 @@ std::pair<std::shared_ptr<FileAccessHelper>, int> FileAccessHelper::DoCreatorHel
|
||||
connectInfo->want = wants[i];
|
||||
connectInfo->fileAccessExtConnection = fileAccessExtConnection;
|
||||
std::string bundleName = wants[i].GetElement().GetBundleName();
|
||||
HILOG_INFO("DoCreatorHelper bundleName is %{public}s", bundleName.c_str());
|
||||
cMap.insert(std::pair<std::string, std::shared_ptr<ConnectInfo>>(bundleName, connectInfo));
|
||||
}
|
||||
|
||||
@ -341,6 +342,7 @@ sptr<IFileAccessExtBase> FileAccessHelper::GetProxyByUri(Uri &uri)
|
||||
sptr<IFileAccessExtBase> FileAccessHelper::GetProxyByBundleName(const std::string &bundleName)
|
||||
{
|
||||
auto connectInfo = GetConnectInfo(bundleName);
|
||||
HILOG_INFO("GetProxyByBundleName start %{public}s", bundleName.c_str());
|
||||
if (connectInfo == nullptr) {
|
||||
HILOG_ERROR("GetProxyByUri failed with invalid connectInfo");
|
||||
return nullptr;
|
||||
|
@ -164,6 +164,8 @@ static void Deleter(struct NameListArg *arg)
|
||||
(arg->namelist)[i] = nullptr;
|
||||
}
|
||||
free(arg->namelist);
|
||||
free(arg);
|
||||
arg = nullptr;
|
||||
}
|
||||
|
||||
static int64_t GetFileMtime(const string &fileName)
|
||||
|
@ -57,6 +57,8 @@ static void Deleter(struct NameListArg *arg)
|
||||
(arg->namelist)[i] = nullptr;
|
||||
}
|
||||
free(arg->namelist);
|
||||
free(arg);
|
||||
arg = nullptr;
|
||||
}
|
||||
|
||||
static int32_t FilterFunc(const struct dirent *filename)
|
||||
|
Loading…
Reference in New Issue
Block a user