From f5ba60790cb5af461ea82ec10597aa1b5c00657b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=81=E7=AB=9E=E8=8E=9C?= Date: Wed, 10 Sep 2025 16:48:47 +0800 Subject: [PATCH] delete ets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 宁竞莜 --- api/@ohos.file.fs.d.ets | 51 ----------------------------------------- 1 file changed, 51 deletions(-) diff --git a/api/@ohos.file.fs.d.ets b/api/@ohos.file.fs.d.ets index 1525dbedaa..360163b72a 100644 --- a/api/@ohos.file.fs.d.ets +++ b/api/@ohos.file.fs.d.ets @@ -2932,38 +2932,6 @@ function writeSync( options?: WriteOptions ): long; -/** - * Connect Distributed File System. - * - * @permission ohos.permission.DISTRIBUTED_DATASYNC - * @param { string } networkId - The networkId of device. - * @param { DfsListeners } listeners - The listeners of Distributed File System. - * @returns { Promise } The promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - The parameter check failed.Possible causes:1.Mandatory parameters are left unspecified; - *
2.Incorrect parameter types. - * @throws { BusinessError } 13900045 - Connection failed. - * @throws { BusinessError } 13900046 - Software caused connection abort. - * @syscap SystemCapability.FileManagement.File.FileIO - * @since 20 - */ -function connectDfs(networkId: string, listeners: DfsListeners): Promise; - -/** - * Disconnect Distributed File System. - * - * @permission ohos.permission.DISTRIBUTED_DATASYNC - * @param { string } networkId - The networkId of device. - * @returns { Promise } The promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - The parameter check failed.Possible causes:1.Mandatory parameters are left unspecified; - *
2.Incorrect parameter types. - * @throws { BusinessError } 13600004 - Unmount failed. - * @syscap SystemCapability.FileManagement.File.FileIO - * @since 20 - */ -function disconnectDfs(networkId: string): Promise; - /** * Set extended attributes information of the file. * @@ -4860,25 +4828,6 @@ export interface WriteStreamOptions { start?: long; } -/** - * The listeners of Distributed File System. - * - * @typedef DfsListeners - * @syscap SystemCapability.FileManagement.File.FileIO - * @since 20 - */ -export interface DfsListeners { - /** - * The Listener of Distributed File System status - * - * @param { string } networkId - The networkId of device. - * @param { number } status - The status code of Distributed File System. - * @syscap SystemCapability.FileManagement.File.FileIO - * @since 20 - */ - onStatus(networkId: string, status: number): void; -} - /** * Task signal. * @typedef { fileIo.TaskSignal } -- Gitee