Hello! I am just beginning to explore Automise as a tool to enhance our automation. I am looking to replace/augment some file transfers scripts that have been cobbled together via PowerShell & WinSCP over the years.
One task that I am automating involves downloading a folder hierarchy from a remote SFTP server to a local file share. I have the SFTP connection and download working flawlessly. I would like to be able to compare the contents of the source hierarchy with the downloaded hierarchy to ensure the integrity of the download, as an extra safeguard. Counting files would be sufficient. I'm including the download log into a variable, and that lists out all of the downloaded files recursively. I haven't found a way to list the source files (on the SMTP server) recursively. It looks like SFTP List Files will only list the first branch of the root directory. I am guessing I may need to either manually send an SFTP command (how can I do this?) or use some sort of iterator loop. I am continuing to experiment but would appreciate any points in the right direction. Thank you!
Chris