Topic "DirectoryExists?"

Author Message
vtthinh
[View user's profile]

Joined: 2017-04-09
Posts: 5
Hi Martin,
Can i check remote directory exists? (in VB.NET)
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
Just use FileExists:
https://winscp.net/eng/docs/library_session_fileexists
vtthinh
[View user's profile]

Joined: 2017-04-09
Posts: 5
martin wrote:

Oh, thank you very much!

In FileTransferProgressEventArgs, i see CPS but I want to get transfered bytes. Do you show me?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
vtthinh wrote:
In FileTransferProgressEventArgs, i see CPS but I want to get transfered bytes. Do you show me?

That's not available.
You can only sum sizes of completely transferred files in Session.FileTransferred event.
vtthinh
[View user's profile]

Joined: 2017-04-09
Posts: 5
martin wrote:
vtthinh wrote:
In FileTransferProgressEventArgs, i see CPS but I want to get transfered bytes. Do you show me?

That's not available.
You can only sum sizes of completely transferred files in Session.FileTransferred event.

Can you do it?

And I have a new question

I need get "Session Time" follow by ETSI TR 102 678 V1.2.1 (2011-05):
5.1.1.3 Trigger Points
The average throughput is measured over the time interval Δtd starting from the successful establishment of the data connection.
Download:
Start: File download starts. Start Method A: Reception of the first data packet containing content.
Start Method B: Reception of the [ACK] from the [SYN, ACK] for active mode connections, sending of the [ACK] for the [SYN, ACK] for passive mode connections on the data socket.
End: End of measurement time interval reached.
Stop: time Δtd elapsed since start trigger event.
Upload:
Start: File upload starts. Start Method A: Sending of the first data packet containing content.
Start Method B: Reception of the [ACK] from the [SYN, ACK] for active mode connections, sending of the [ACK] for the [SYN, ACK] for passive mode connections on the data socket.
End: End of measurement time interval reached.
Stop: time Δtd elapsed since start trigger event.

How can I get Trigger Points of Start and End of the transfer?

Thanks in advance!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
vtthinh wrote:
Can you do it?

Do what?

Quote:
How can I get Trigger Points of Start and End of the transfer?

That again is the time the Session.FileTransferred is called.
_________________
Martin Prikryl
vtthinh
[View user's profile]

Joined: 2017-04-09
Posts: 5
martin wrote:
Do what?

Ah, current In FileTransferProgressEventArgs can not get bytes transferred
martin wrote:
That's not available.


martin wrote:
]That again is the time the Session.FileTransferred is called.


Thank you!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
vtthinh wrote:
martin wrote:
Do what?

Ah, current In FileTransferProgressEventArgs can not get bytes transferred
martin wrote:
That's not available.

OK, I'll consider this.
vtthinh
[View user's profile]

Joined: 2017-04-09
Posts: 5
martin wrote:
OK, I'll consider this.

Thanks in advance!
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