Open a-marcel opened 2 years ago
@a-marcel your issue is that the bucket prefix of the last entry includes the bucket entries synced by the previous 3 entries. The deleteRemoved flag is passed as-is to the S3 client, and it does what it's supposed to do (i.e. delete all files that start with bucketPrefix, that are not in the local dir).
The fact that all the uploading is done in parallel explains why the issue occurs for "some" of the files.
Hello,
i figured out that there is an issue, if one directory has the option
deletedRemoved: true
and all other are usingdeletedRemoved: false
.some files of the other configurations will be deleted even if they are configured with
deleteRemoved: false
.After i set the last one to false. it works like expected.
I was trying to dig deeper but didn't found the exact issue in your code.
Thanks for checking.