I'll try, but don't use to much energi on a solution, cause I think I solved it yesterday.
But yes it seems a bit contradictory, but take a look at the folders on the FTP, in particularly these two:
"/P3D/TS2017i/clickonce applications/DS Checker/",
"/P3D/TS2017i/clickonce applications/DS Checker/sync files/"
They should be synchronized from here:
"\\server\dfs\Produktion\0 - RIMTO\VBProj\DS Checker\Poka installation",
"\\server\dfs\Produktion\0 - RIMTO\VBProj\DS Checker\sync files"
And to keep things clean, we want it to delete on the FTP folder, that's not on the source server. Problem is that when it runs the first line, it delete the "sync foles" on the FTP. Next it wants to upload/sync to that folder, but now it isn't there anymore.
Hence the problem, we want it to delete everything want not present in the source, except for the "sync files", and again in that folder should delete things that aren't present.
But I tried this: $TransferOptions.FileMask = "|*/sync files/"
and it seems to do the trick.
But yes it seems a bit contradictory, but take a look at the folders on the FTP, in particularly these two:
"/P3D/TS2017i/clickonce applications/DS Checker/",
"/P3D/TS2017i/clickonce applications/DS Checker/sync files/"
They should be synchronized from here:
"\\server\dfs\Produktion\0 - RIMTO\VBProj\DS Checker\Poka installation",
"\\server\dfs\Produktion\0 - RIMTO\VBProj\DS Checker\sync files"
And to keep things clean, we want it to delete on the FTP folder, that's not on the source server. Problem is that when it runs the first line, it delete the "sync foles" on the FTP. Next it wants to upload/sync to that folder, but now it isn't there anymore.
Hence the problem, we want it to delete everything want not present in the source, except for the "sync files", and again in that folder should delete things that aren't present.
But I tried this: $TransferOptions.FileMask = "|*/sync files/"
and it seems to do the trick.