openharmony 鸿蒙 changelogs-filemanagement

2023-10-30 浏览 (355)

File Management Subsystem Changelog

cl.filemanagement.1 Change the Filter Type from systemapi to publicapi

Changed the Filter type in @ohos.file.fs from systemapi to publicapi.

Change Impact The compatibility is changed, and there is no impact of the change. Third-party applications can use the Filter type.

cl.filemanagement.2 Change of Watcher APIs from systemapi to publicapi

Changed Watcher-related APIs in @ohos.file.fs from systemapi to publicapi.

Watcher-related APIs are as follows:

APIDescription
function createWatcher(path: string, events: number, listener: WatchEventListener): WatcherCreates a Watcher object to observe file or directory changes.
interface WatchEventListenerEvent listening class.
interface WatchEventEvent class.
property WatchEvent.fileNameName of the file for which the event occurs.
property WatchEvent.eventEvents to observe.
property WatchEvent.cookieCookie bound with the event.
interface WatcherFile or directory object whose changes are observed.
function Watcher.start(): voidStarts listening.
function Watcher.stop(): voidStops listening.

Change Impact The compatibility is changed, and there is no impact of the change. Third-party applications can use the capability of file listening.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Distributed Data Management Subsystem Changelog

harmony 鸿蒙formfwk Subsystem Changelog

harmony 鸿蒙Wi-Fi Subsystem Changelog

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