aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/services/Files.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/services/Files.ts')
-rw-r--r--apps/files/src/services/Files.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files/src/services/Files.ts b/apps/files/src/services/Files.ts
index fba65ac44ae..c09be2d72ac 100644
--- a/apps/files/src/services/Files.ts
+++ b/apps/files/src/services/Files.ts
@@ -22,13 +22,12 @@
import type { ContentsWithRoot } from '@nextcloud/files'
import type { FileStat, ResponseDataDetailed, DAVResultResponseProps } from 'webdav'
-import { cancelable, CancelablePromise } from 'cancelable-promise'
-import { File, Folder, davParsePermissions } from '@nextcloud/files'
+import { CancelablePromise } from 'cancelable-promise'
+import { File, Folder, davParsePermissions, davGetDefaultPropfind } from '@nextcloud/files'
import { generateRemoteUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import { getClient, rootPath } from './WebdavClient'
-import { getDefaultPropfind } from './DavProperties'
import { hashCode } from '../utils/hashUtils'
import logger from '../logger'
@@ -76,7 +75,7 @@ export const resultToNode = function(node: FileStat): File | Folder {
export const getContents = (path = '/'): Promise<ContentsWithRoot> => {
const controller = new AbortController()
- const propfindPayload = getDefaultPropfind()
+ const propfindPayload = davGetDefaultPropfind()
return new CancelablePromise(async (resolve, reject, onCancel) => {
onCancel(() => controller.abort())