Topic "getting SFTP linux server current time using .NET assembly"

Author Message
Sasidharan9513
[View user's profile]

Joined: 2012-11-08
Posts: 11
Hi There,

I am using .NET assembly to connect to the linux server from windows server.

I am able to upload / download files from the linux server.

Is there a way to get the sftp linux server current time with the help of winscp .net assembly?

my requirement is that i need to get the sftp linux server current time and download only the files which are 15 minutes older.

any comments/suggestion would be helpful....

Regards,
S.Sasidharan
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
SFTP protocol does not provide such information.
Anyway, the WinSCP .NET assembly should convert the remote file timpstamps to local time, so you can safely compare the timestamps against current local time.
Sasidharan9513
[View user's profile]

Joined: 2012-11-08
Posts: 11
Hi There,

I am getting the linux server time using the session execute command.

session.ExecuteCommand("date")

its getting the linux server time.

is it a right way of doing?

Regards,
S.Sasidharan
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