Hello,
Thank you very much for the great .NET assembly.
Unfortunately, I am having trouble with a rather complicated mask.
The folder structure from which synchronization should occur is as follows:
I:\project\2020\001__Projectname1\subfolder1\subfolder2
I:\project\2020\002__Projectname2\subfolder1\subfolder2
I:\project\2020\003__Projectname3\subfolder1\subfolder2
I:\project\2021\001__Projectname4\subfolder1\subfolder2
I:\project\2021\002__Projectname5\subfolder1\subfolder2
I:\project\2021\003__Projectname6\subfolder1\subfolder2
I actually have yearly folders from 2014–2024, and each year contains around 300 project folders. My program provides me with a list of about 50 folders from different years that I want to synchronize, but only those specific ones. So, I wanted to recursively include these parts of the path names, which are unique (e.g.,
003__Projectname6
), as directories to be considered. Additionally, I do not want to synchronize any files with some specific endings and do not want to synchronize any subfolder1 named
MB-Projekt
The synchronization starts at
I:\project
.
opt = new TransferOptions();
opt.FileMask = "*\002__Projectname2\; *\003__Projectname6\; | *.DMX; *.vps; *.ini; *.lock; */MB-Projekt/";
Unfortunately, there are issues with the directory being considered. While this directory is synchronized, its subdirectories and their files are not. How can I achieve this?