Re: Script to get yesterday folder only
Would it help to download the last directory when sorted "by alphabet"?
Then, you can try to modify following example to sort by
https://winscp.net/eng/docs/script_download_most_recent_file
Then, you can try to modify following example to sort by
.Name, instead of .LastWriteTime. And of course remove the -Not $_.IsDirectory filter.
https://winscp.net/eng/docs/script_download_most_recent_file