Home
last modified time | relevance | path

Searched refs:detailsPath (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/MediaLibraryExt/entry/src/main/ets/MediaBackupExtensionAbility/
H A DMediaBackupExtensionAbility.ts221 let detailsPath = subCountInfo.details;
222 subCountInfo.details = await this.getDetails(type, detailsPath);
232 private async getDetails(type: string, detailsPath: string): Promise<null | number> {
233 if (detailsPath.length === 0) {
237 let file = await fs.open(detailsPath);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dbackup_file_utils.cpp443 std::string detailsPath = RESTORE_FAILED_FILES_PATH + "_" + type + ".txt"; in GetDetailsPath() local
444 if (MediaFileUtils::IsFileExists(detailsPath) && !MediaFileUtils::DeleteFile(detailsPath)) { in GetDetailsPath()
445 MEDIA_ERR_LOG("%{public}s exists and delete failed", detailsPath.c_str()); in GetDetailsPath()
451 if (MediaFileUtils::CreateAsset(detailsPath) != E_SUCCESS) { in GetDetailsPath()
452 MEDIA_ERR_LOG("Create %{public}s failed", detailsPath.c_str()); in GetDetailsPath()
456 if (!MediaFileUtils::WriteStrToFile(detailsPath, failedFilesStr)) { in GetDetailsPath()
457 MEDIA_ERR_LOG("Write to %{public}s failed", detailsPath.c_str()); in GetDetailsPath()
460 return detailsPath; in GetDetailsPath()
H A Dbase_restore.cpp877 std::string detailsPath; in GetSubCountInfoJson() local
880detailsPath = BackupFileUtils::GetDetailsPath(DEFAULT_RESTORE_ID, type, subCountInfo.failedFiles, … in GetSubCountInfoJson()
881 subCountInfoJson[STAT_KEY_DETAILS] = detailsPath; in GetSubCountInfoJson()