Hello,
I am creating this app which upon request will move desired files from one folder to another. However, after request, files are being deleted instead of moved to another folder. To achieve this, I am using filesMoveBatchV2 call and it returns async_job_id. After checking async_job_id with filesMoveBatchCheckV2 call I receive status-completed, but if I check in my dropbox account, I cant see files being moved to desired folder but instead deleted. Hope you can help me. Here is my code.
await dbx.filesMoveBatchV2({
entries:[{
from_path: `/FromFolder`,
to_path: '/ToFolder'
}]
}).then(async (res) =>{
let bl
do{
bl = await dbx.filesMoveBatchCheckV2({
async_job_id : res.result.async_job_id
})
console.log("BL: ", bl.result['.tag'])
}
while(bl.result['.tag'] === 'in_progress')
}).catch((err)=>{
console.log(err)
})