Topic "Get remote file changed date and time."

Author Message
Ahsan

Guest


Hi,

Can you please help to which command will give me last modified remote file date and time? I tried to find out but failed to do.

Thanks.
Advertisements
Ahsan

Guest


I had searched a specific command for last modified datetime of the remote file. The basic ftp command for this purpose is MDTM. Does Winscp support this operation.????
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
You cannot access this functionality directly from script. You can use ls command to get directory listing including the modification timestamp.
_________________
Martin Prikryl
unaligned

Guest


prikryl wrote:
You cannot access this functionality directly from script. You can use ls command to get directory listing including the modification timestamp.


Does this mean that if I am writing a program that automates downloading or uploading files that are new every day (files still exist from previous days in the directories) that there is no way via code to determine which files the program should ul/dl?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
unaligned wrote:
Does this mean that if I am writing a program that automates downloading or uploading files that are new every day (files still exist from previous days in the directories) that there is no way via code to determine which files the program should ul/dl?

Please read
https://winscp.net/eng/docs/script_download_most_recent_file
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