This commit is contained in:
Alexandre_BRAVO 2024-11-22 15:04:06 +01:00
parent 602a2b2d9a
commit 66f85f0342

View File

@ -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);