From 66f85f034276506cb7cf0c952dfd5034aa068645 Mon Sep 17 00:00:00 2001 From: Alexandre_BRAVO <134793082+AlexandreBRAVO@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:04:06 +0100 Subject: [PATCH] i fogor --- src/components/FileTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FileTable.vue b/src/components/FileTable.vue index 3af151d..e97d9f7 100644 --- a/src/components/FileTable.vue +++ b/src/components/FileTable.vue @@ -289,10 +289,10 @@ export default { } }, async moveFilesOfFolder(folder, parentPath) { - await this.createFolder(folder, parentPath); - const progressSteps = 100 / folder.children.length; + const fileProgress = 100 / folder.children.length + const progressSteps = Math.floor(fileProgress); for (const child of folder.children) { this.transferProgress += progressSteps; @@ -311,7 +311,7 @@ export default { const client = getClient(); // Assurez-vous que le chemin parent est correctement formaté - const fullPath = `${this.root_path}${this.current_dir}${parentPath}${file.name}`; + const fullPath = `${this.root_path}${this.current_dir}${parentPath}/${file.name}`; if (ArrayBuffer.isView(file.content)) { file.content = Buffer.from(file.content);