Hi Martin,
Sorry about being vague, was trying to keep it general so that it other users in the same boat could benefit as well.
On the FTP Server
The FTP site gets updated daily, the files are stored in monthly folders (yyyyMM
). There are no other sub folders. There is one folder on the FTP site that I want to exclude entirely which has the path (/sftp/file/000001
) When the FTP user connects it defaults to folder path /sftp/file/
.
Within each of the monthly folders there are various files, there are 4 file names that get repeated with different file extensions (ATM01.*
, ATM02.*
, AMT03.*
and ATM04.*
), there could be other file names in there that I don't want (eg ATM08.*
) but I don't know for sure what they will be so I only want to include the files that start with the 4 names given with any file extension after that name. (eg ATM01.txt
, ATM01.csv
...etc).
On Local Machine
On the local machine the file path is H:\sftp\file\
and it should replicate the monthly folder structure.
So I want to synchronize from the Remote (FTP) server to the local machine based on the rules given above.
Is that enough information for you?
Hope you can help.
Thanks
Alex