Using wildcards to access SFTP directory
Hi
I am creating a SFTP task in SSIS. I followed these steps:
https://winscp.net/eng/docs/library_ssis
The C# script works IF the file paths are explicitly stated. Below is excerpt that works:
However, the remote directory will have new order and item numbers so the numbers will change but it will always have order and item in the names. I need below to work:
I cannot use
Thank you
I am creating a SFTP task in SSIS. I followed these steps:
https://winscp.net/eng/docs/library_ssis
The C# script works IF the file paths are explicitly stated. Below is excerpt that works:
TransferOperationResult transferResult; transferResult = session.GetFiles("/order_000053922/item_000098300/file_*", @"C:\Users\Me\To_Be_Processed\", false, transferOptions);
TransferOperationResult transferResult; transferResult = session.GetFiles("/order_*/item_*/file_*", @"C:\Users\Me\To_Be_Processed\", false, transferOptions);
*
like this. It complains. How would I code this so I can use *
like noted?
Thank you