diff --git a/api/@ohos.file.fileAccess.d.ts b/api/@ohos.file.fileAccess.d.ts index c4a7647f3de554594c3a9fc0e25d723545148f30..14b39ab758813f57c472be39b5c8355edfa664fa 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. *