Searched refs:tempFileName (Results 1 - 5 of 5) sorted by relevance
/foundation/multimedia/media_foundation/engine/foundation/osal/filesystem/ |
H A D | file_system.cpp | 151 char tempFileName[MAX_FILE_PATH] = "/usrbin/hstTmp.XXXXXX"; in GetTmpFileName() local 155 FALSE_RETURN_V_MSG_E(pathLength < MAX_FILE_PATH && pathLength > 0, tempFileName, "get temp path failed"); in GetTmpFileName() 156 auto ret = GetTempFileName(tempPath, "hstTmp", 0, tempFileName); in GetTmpFileName() 157 FALSE_RETURN_V_MSG_E(ret != 0, tempFileName, "get temp file name failed"); in GetTmpFileName() 159 mkstemp(tempFileName); in GetTmpFileName() 161 return tempFileName; in GetTmpFileName()
|
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | watcher_impl.cpp | 198 string tempFileName; in NotifyEvent() local 204 tempFileName = found->first; in NotifyEvent() 208 string fileName = tempFileName; in NotifyEvent()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/ |
H A D | watcher_entity.cpp | 253 string tempFileName; in NotifyEvent() local 259 tempFileName = found->first; in NotifyEvent() 263 string fileName = tempFileName; in NotifyEvent()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_generate_helper.cpp | 377 string tempFileName = fileParentPath + "/THM_EX" + fileName.substr(fileParentPath.length()); in GetAvailableFile() local 378 if (access(tempFileName.c_str(), F_OK) == 0) { in GetAvailableFile() 379 fileName = tempFileName; in GetAvailableFile() 387 MEDIA_ERR_LOG("GenerateLocalThumbnail failed, path: %{public}s", DfxUtils::GetSafePath(tempFileName).c_str()); in GetAvailableFile()
|
H A D | thumbnail_utils.cpp | 1519 string tempFileName = fileName + ".tmp"; in SaveFile() local 1522 UniqueFd fd(open(tempFileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC, fileMode)); in SaveFile() 1526 UniqueFd fd(open(tempFileName.c_str(), O_WRONLY | O_TRUNC, fileMode)); in SaveFile() 1530 std::string fileParentPath = MediaFileUtils::GetParentPath(tempFileName); in SaveFile() 1532 "exists: %{public}d", err, DfxUtils::GetSafePath(tempFileName).c_str(), MediaFileUtils::IsFileExists( in SaveFile() 1533 tempFileName), MediaFileUtils::IsFileExists(fileParentPath)); in SaveFile() 1559 errCode = MediaFileUtils::ModifyAsset(tempFileName, fileName); in SaveFile() 1562 if (!MediaFileUtils::DeleteFile(tempFileName)) { in SaveFile() 1564 errno, DfxUtils::GetSafePath(tempFileName).c_str()); in SaveFile()
|
Completed in 10 milliseconds