Closed guoweiy closed 3 years ago
Yes, that is a problem. I will have to change something about the sync strategy. Good that this has come up during the beta stage.
So, this is fixed in v0.21.2
.
I introduced a new option to decide if you want to sync server delete operations into the mapped folder or not. Please not that when this is active then the app will still behave like you described. This is because, currently, the only way of knowing that a file is gone is by making a diff between the local list and the remote list.
Only other option would be get the activity log and scan it for delete activities. However, this would not only be a new feature for the app but also one for the Dart Nextcloud library. To track this I opened #77.
Local files lost before they are auto-uploaded by the Nextcloud app. It seems that yaga deleted the local files if they do not exist on the server.
Version: 0.21.1
Settings: Home path: nc://xxx@xxx.com/Photos/ Root mapping - remote path: nc://xxx@xxx.com/Photos/ Root mapping - local path: file://device.local/DCIM/Camera/ Nextcloud auto-upload: use the above local and remote paths. Select "original file will be kept in original folder". Also, check "only upload when charging" (so we can control when to start auto-upload).
Steps to reproduce: