Lines Matching defs:fileName
93 int32_t DownloadThread::StartDownload(const std::string &fileName, const std::string &url)
96 downloadFileName_ = fileName;
226 size_t DownloadThread::GetLocalFileLength(const std::string &fileName)
228 bool findDot = (fileName.find("/.") != std::string::npos) || (fileName.find("./") != std::string::npos);
231 FILE* fp = FileOpen(fileName, "r");
262 FILE* DownloadThread::FileOpen(const std::string &fileName, const std::string &mode)
264 if (fileName.empty() || fileName.size() > PATH_MAX) {
268 std::string fileDir = fileName;
273 ENGINE_LOGI("DownloadThread file %{public}s, mode: %{public}s", fileName.c_str(), mode.c_str());
279 ENGINE_LOGI("DownloadThread file %{public}s, mode: %{public}s", fileName.c_str(), mode.c_str());
283 FILE* fp = fopen(fileName.c_str(), mode.c_str());