From 8dca5bd1f8ddc2cb7f93492ef6f562557057df8b Mon Sep 17 00:00:00 2001 From: caochuan Date: Mon, 9 Jan 2023 14:24:53 +0800 Subject: [PATCH] feat: add query interface for faf Signed-off-by: caochuan --- api/@ohos.file.fileAccess.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.file.fileAccess.d.ts b/api/@ohos.file.fileAccess.d.ts index c4a7647f3d..14b39ab758 100644 --- a/api/@ohos.file.fileAccess.d.ts +++ b/api/@ohos.file.fileAccess.d.ts @@ -339,6 +339,21 @@ declare namespace fileAccess { access(sourceFileUri: string) : Promise; access(sourceFileUri: string, callback: AsyncCallback) : void; + /** + * Obtain the property of a file or directory. + * + * @since 9 + * @syscap SystemCapability.FileManagement.UserFileService + * @StageModelOnly + * @systemapi + * @permission ohos.permission.FILE_ACCESS_MANAGER + * @param uri Indicates the selected file or directory. + * @param metaJson The json string include query property. + * @returns {(void | Promise)} Returns the json string, include query property and value. + */ + query(uri: string, metaJson: string) : Promise; + query(uri: string, metaJson: string, callback: AsyncCallback) : void; + /** * Get a RootIterator. * -- Gitee