diff --git a/api/@ohos.statfs.d.ts b/api/@ohos.statfs.d.ts index d1798e8e6a5e1b6c5a1a29202e2b11814779102a..db90b1e755b40272b6a4e4f2b72e189d3821eb28 100644 --- a/api/@ohos.statfs.d.ts +++ b/api/@ohos.statfs.d.ts @@ -36,6 +36,13 @@ declare namespace Statfs { */ function getTotalBytes(path: string, callback: AsyncCallback): void; function getTotalBytes(path: string): Promise; + /** + * Get the number of available bytes of the specified path. + * @param path The path is a sandbox path: /data/storage/el2/base/haps/entry/files + * @since 9 + */ + function getAvailableBytes(path: string, callback: AsyncCallback): void; + function getAvailableBytes(path: string): Promise; } export default Statfs;