Open s-h-a-d-o-w opened 6 days ago
A simpler way of dealing with this that might be good enough for now might be to do something similar to what cryptomator does on android. Which is that it doesn't allow creating new files while there's no connection to S3.
This could be done by modifying the permissions of the S3 directory to block write access recursively. AND a message would have to be shown to the user to make them aware of this!
Unfortunately, this would require admin privileges because we can't necessarily assume that only the active user writes to that directory. Which would require additional app logic, particularly around the auto-start.
And so for now, for the sake of even more simplicity... I think it's best to just show a popup, tell people not to write to their S3 directory until they're connected again AND adjust initial syncing in a way that it will also delete local files that got deleted on S3 while they were offline. [Update] Actually... that would be a problem for the CLI version...
This could be resolved the following way:
Problems that have to be considered: