Merge pull request #54382 from nextcloud/bug/noid/jump-to-files-empty-file-list-30

[stable30] fix: use the join function for merging davRootPath and path
This commit is contained in:
Daniel 2025-08-14 12:06:05 +02:00 committed by GitHub
commit f8fdc8fb02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View file

@ -7,6 +7,7 @@ import type { FileStat, ResponseDataDetailed } from 'webdav'
import { CancelablePromise } from 'cancelable-promise'
import { davGetDefaultPropfind, davResultToNode, davRootPath } from '@nextcloud/files'
import { join } from 'path'
import { client } from './WebdavClient.ts'
import logger from '../logger.ts'
@ -17,11 +18,10 @@ import logger from '../logger.ts'
export const resultToNode = (node: FileStat): Node => davResultToNode(node)
export const getContents = (path = '/'): CancelablePromise<ContentsWithRoot> => {
path = join(davRootPath, path)
const controller = new AbortController()
const propfindPayload = davGetDefaultPropfind()
path = `${davRootPath}${path}`
return new CancelablePromise(async (resolve, reject, onCancel) => {
onCancel(() => controller.abort())
try {

4
dist/files-init.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long