Topic "Get remote File size during batch operation"

Author Message
tkpatchell
[View user's profile]

Joined: 2015-01-20
Posts: 4
Location: Canada
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
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).
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License