chore(files_sharing): Do not use files source files but directly the library

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/47806/head
Ferdinand Thiessen 2024-09-06 16:53:42 +07:00
parent a05e5428c5
commit f06fdb04a3
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with 2 additions and 3 deletions

@ -3,12 +3,11 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import type { FileStat, ResponseDataDetailed } from 'webdav'
import { Folder, Permission, View, davGetDefaultPropfind, davRemoteURL, davRootPath, getNavigation } from '@nextcloud/files'
import { Folder, Permission, View, davGetDefaultPropfind, davRemoteURL, davResultToNode, davRootPath, getNavigation } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import { CancelablePromise } from 'cancelable-promise'
import LinkSvg from '@mdi/svg/svg/link.svg?raw'
import { resultToNode } from '../../../files/src/services/Files'
import { client } from '../../../files/src/services/WebdavClient'
import logger from '../services/logger'
@ -40,7 +39,7 @@ export default () => {
resolve({
// We only have one file as the content
contents: [resultToNode(node.data)],
contents: [davResultToNode(node.data)],
// Fake a readonly folder as root
folder: new Folder({
id: 0,