openharmony 鸿蒙 capi-clouddisk-clouddisk-changedata

2026-08-25 浏览 (1)

CloudDisk_ChangeData

typedef struct CloudDisk_ChangeData  {...} CloudDisk_ChangeData

Overview

A struct that encapsulates the event data generated when a single file under the sync root path is changed. It includes the file's unique ID, the parent directory's unique ID, relative path, change type, file size, and timestamp.

Since: 21

Related module: CloudDisk

Header file: oh_cloud_disk_manager.h

Summary

Member Variables

NameDescription
uint64_t updateSequenceNumber{0}Update sequence number of the change event. It is incremented by 1 monotonically each time a file is changed, and is used for incremental change query. Value range: [0, 2^64 – 1]
CloudDisk_FileIdInfo fileIdGlobally unique file ID. It remains unchanged within the lifecycle of the file.
CloudDisk_FileIdInfo parentFileIdUnique ID of the parent directory to which the file or directory belongs.
CloudDisk_PathInfo relativePathInfoRelative path of the file under the sync root path.
CloudDisk_OperationType operationTypeChange operation type of the file (for example, create, delete, and move).
uint64_t size{0}File size, in bytes.
uint64_t mtime{0}File modification time, in milliseconds.
uint64_t timeStamp{0}Time when a change event occurs, in milliseconds.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-file-environment-sys

openharmony 鸿蒙 js-apis-file-fs

openharmony 鸿蒙 capi-clouddisk-clouddisk-pathinfo

openharmony 鸿蒙 capi-clouddisk-clouddisk-changesresult

openharmony 鸿蒙 capi-clouddisk-clouddisk-syncfolder

openharmony 鸿蒙 js-apis-fileShare

openharmony 鸿蒙 capi-fileio

openharmony 鸿蒙 js-apis-file-storage-statistics-sys

openharmony 鸿蒙 js-apis-file-cloudsyncmanager

openharmony 鸿蒙 js-apis-file-environment

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/jZBeW6em