@@ -8,10 +8,9 @@ import type { RootDirectory } from './DropServiceUtils'
88
99import { Folder , Node , NodeStatus , davRootPath } from '@nextcloud/files'
1010import { getUploader , hasConflict } from '@nextcloud/upload'
11- import { join } from 'path'
12- import { joinPaths } from '@nextcloud/paths'
11+ import { join } from '@nextcloud/paths'
1312import { showError , showInfo , showSuccess , showWarning } from '@nextcloud/dialogs'
14- import { translate as t } from '@nextcloud/l10n'
13+ import { t } from '@nextcloud/l10n'
1514import Vue from 'vue'
1615
1716import { Directory , traverseTree , resolveConflict , createDirectoryIfNotExists } from './DropServiceUtils'
@@ -125,7 +124,7 @@ export async function onDropExternalFiles(root: RootDirectory, destination: Fold
125124 // If the file is a directory, we need to create it first
126125 // then browse its tree and upload its contents.
127126 if ( file instanceof Directory ) {
128- const absolutePath = joinPaths ( davRootPath , destination . path , relativePath )
127+ const absolutePath = join ( davRootPath , destination . path , relativePath )
129128 try {
130129 console . debug ( 'Processing directory' , { relativePath } )
131130 await createDirectoryIfNotExists ( absolutePath )
0 commit comments