harmony(鸿蒙)JS API Changes of the File Management Subsystem

  • 2022-10-28
  • 浏览 (467)

JS API Changes of the File Management Subsystem

The table below lists the APIs changes of the file management subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.volumeManager Volume diskId: string; Added
ohos.volumeManager volumeManager partition(volId: string, fstype: string, callback: AsyncCallback<void>): void;
partition(volId: string, fstype: string): Promise<void>;
Updated
ohos.volumeManager volumeManager format(volId: string, callback: AsyncCallback<void>): void;
format(volId: string): Promise<void>;
Updated
ohos.volumeManager volumeManager old :
getVolumeById(id: string, callback: AsyncCallback<Volume>): void;
getVolumeById(id: string): Promise<Volume>;
new :
getVolumeById(volumeId: string, callback: AsyncCallback<Volume>): void;
getVolumeById(volumeId: string): Promise<Volume>
Updated
ohos.volumeManager volumeManager old :
format(volId: string, callback: AsyncCallback<void>): void;
format(volId: string): Promise<void>;
new :
format(volumeId: string, fsType: string, callback: AsyncCallback<void>): void;
format(volumeId: string, fsType: string): Promise<void>;
Updated
ohos.volumeManager volumeManager old :
partition(volId: string, fstype: string, callback: AsyncCallback<void>): void;
partition(volId: string, fstype: string): Promise<void>;
new :
partition(diskId: string, type: number, callback: AsyncCallback<void>): void;
partition(diskId: string, type: number): Promise<void>;
Updated

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Adaptation Guide for the Application Sandbox

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)

harmony(鸿蒙)JS API Changes of the Ability Framework

harmony(鸿蒙)JS API Changes of the Accessibility Subsystem

harmony(鸿蒙)JS API Changes of the Account Subsystem

harmony(鸿蒙)JS API Changes of the ArkUI Development Framework

harmony(鸿蒙)JS API Changes of the Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the Utils Subsystem

0  赞