Alternate way to grab files from last day

Advertisement

svk253
Joined:
Posts:
1

Alternate way to grab files from last day

I am connecting to a third party SFTP site to download files with a PowerShell script through WinSCP.

Over the last few days they changed something on their end, and something is updating their file directories to change the last modified date to the same day. There are multiple days worth of files in there and I only want the past 1 day. But whatever is happening is changing all the modified dates to current day.

They won't help me.

What are other methods I can use to just pull the most recent file if I can't rely on modified date?

TIA

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Alternate way to grab files from last day

Sorry, but that's quite vague question. We do not know anything about your files, so we cannot advise how you can tell which are newer, if you cannot use the timestamps (if I understand the problem correctly.

Though you can find some inspiration here:
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/library_example_remember_downloaded_files

Reply with quote

Advertisement

You can post new topics in this forum