Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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).
tkpatchell

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?