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
| Name | Description |
|---|---|
| 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 fileId | Globally unique file ID. It remains unchanged within the lifecycle of the file. |
| CloudDisk_FileIdInfo parentFileId | Unique ID of the parent directory to which the file or directory belongs. |
| CloudDisk_PathInfo relativePathInfo | Relative path of the file under the sync root path. |
| CloudDisk_OperationType operationType | Change 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 鸿蒙 js-apis-file-storage-statistics-sys