Get remote File size during batch operation

Advertisement

tkpatchell
Joined:
Posts:
4
Location:
Canada

Get remote File size during batch operation

I am trying to find a way to get the file size of the file I am downloading while using the batch .GetFiles operation.

I have used your example to recursively get each file by listing all the files, and calling .GetFiles on individual files, and that works well using the RemoteFileInfo.Length property

The problem with that approach is that the .OverallProgress of the downloading will always be equal to the .FileProgress. Ideally i would like to be able to display the file size of each file getting downloaded, the file progress, and the overall progress

I am using VBA to implement this.

ANy thoughts?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Get remote File size during batch operation

There's no native support for this.

All your can do, once you have the recursive download core ready, is to calculate total tree size, while recursing the tree. And download files only after that (either by recursing again or collecting a file list in the first recursion).

Reply with quote

Advertisement

You can post new topics in this forum