Skip to content

Commit c5e3dde

Browse files
committed
fix(WebdavClient): Use dav functions from @nextcloud/files/dav
Signed-off-by: Jonas <jonas@freesources.org>
1 parent e2fc64b commit c5e3dde

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/services/WebdavClient.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55
import type { Node } from '@nextcloud/files'
6-
import {
7-
davGetClient,
8-
davGetDefaultPropfind,
9-
davResultToNode,
10-
} from '@nextcloud/files'
6+
import { getClient, getDefaultPropfind, resultToNode } from '@nextcloud/files/dav'
117
import type { FileStat, ResponseDataDetailed } from 'webdav'
128

13-
export const client = davGetClient()
9+
export const client = getClient()
1410

1511
export const fetchNode = async (node: Node): Promise<Node> => {
16-
const propfindPayload = davGetDefaultPropfind()
12+
const propfindPayload = getDefaultPropfind()
1713
const result = (await client.stat(`${node.root}${node.path}`, {
1814
details: true,
1915
data: propfindPayload,
2016
})) as ResponseDataDetailed<FileStat>
21-
return davResultToNode(result.data)
17+
return resultToNode(result.data)
2218
}

0 commit comments

Comments
 (0)