Now use a snapshotting approach in CDECloudManager for the remote files. A list is made of existing files at the start of a merge. This list is used whenever contents of remote directories is needed.
This approach means all parts of the merge will deal with the known remote files at the beginning of the merge process. If other files should appear, they will be ignored until the next merge attempt.