Best unofficial Apache Server developers community |
|
when i do ftp->list() i'm expecting to get the bytes read and show it. i want to able also to print at the end of the ftp->list() process msg like this:
posted via StackOverflow
|
![]()  
|
I'm assuming you're using QFtp. As you mentioned dataTransferProgress signal is not emitted for LIST command. I guess what you could try to do is: get the number of bytes available in the data socket usig ftp()->bytesAvailable in your listInfo signal slot. It should reduce every time a new line (and it should be one line for a folder) is read from the socket. This would give you the number of bytes used by a single folder. Multiply it by the number of folders received and it should get you the (aproximate) number for bytes transfered. |