Auto upload can't recreate subfolders deleted by other client
- Dominant language
- Kotlin
- Stars
- 5.6k
- Forks
- 2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 92
Description
### ⚠️ Before posting ⚠️
- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Steps to reproduce
1. Create auto upload using subfolders and upload anything
2. Delete subfolders from another client
3. Auto upload fails with "File not found"
Manually creating the subfolders e. g. "./2024/11" results in auto upload working again on the next try.
### Expected behaviour
Auto upload should check, if the necessary subfolders are present and create them if not.
### Actual behaviour
Auto upload can't find the previously created subfolders and fails with a misleading error message.
### Android version
15
### Device brand and model
Google Pixel 7a
### Stock or custom OS?
Custom (explain in "additional information")
### Nextcloud android app version
3.30.4
### Nextcloud server version
30.0.0.14
### Using a reverse proxy?
I don't know
### Android logs
_No response_
### Server error logs
```bash
```
### Additional information
Android version: GrapheneOS (Android 15) Build 2024110700
I can't access the Android clients log, because on GrapheneOS I have no access to the system's filesystem.
The Nextcloud server log does not contain any relevant error (only the current Driver exception bug [nextcloud/all-in-one/discussions/5277] and failed login attempts).
I suspect that the Android client is not refreshing the auto upload directory correctly, because when I recreate the subfolders I saw some files for a split second, then the client syncs and the subfolder is empty as it should be.
I'm using storage scopes and only allow the app access to the folders it should auto upload from.
Contributor guide
Assessment
This issue has not been assessed yet.