Hello! I'm dealing with a tricky issue right here. I need to download through sftp to local a file that is daily written on remote. The issue is that the remote source folder name it's changing daily with the format "folder_2020MMDDHHMMSS". Each day is created a new file at different hours, so the folder name will differ every day (cannot use get-date).
How can I use sort of wildcard in the remote source path?
I want to mention that I've tried get-childitem, resolvePath and invoke command, no luck at all.
any help, please
$session.GetFiles($sourcefolder,"destinationfolder", $false, $transferOptions).Check()
$sourcefolder it's something like :"/folder/folder_20200310223045"