Hello guys, how can I get the file size for a download progress?
I tried some properties but to no avail.
Is there a property that returns the size?
tks.
File Size Download
Re: File Size Download
You can get the size of the downloaded file using the TScSFTPFileAttributes.Size property: https://devart.com/sbridge/docs/tscsftp ... s_size.htm
You can use the following recommendations to get the size of the downloaded file file:
- get file attributes and file size using the TScSFTPClient.RetrieveAttributes method;
For example:
You can use the following recommendations to get the size of the downloaded file file:
- get file attributes and file size using the TScSFTPClient.RetrieveAttributes method;
For example:
Code: Select all
var
Attrs: TScSFTPFileAttributes;
...
aAttr := TScSFTPFileAttributes.Create;
try
ScSFTPClient.RetrieveAttributes(aAttr, GetRootDir + Node.Text);
finally
aAttr.Free;
end;
-
- Posts: 10
- Joined: Mon 21 Jan 2019 12:35
Re: File Size Download
ViktorV thanks. Its Working.
Re: File Size Download
Thank you for the interest to our product.
It is good to see that the problem has been solved.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.
It is good to see that the problem has been solved.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.