Draft: Create remoteFolder when eDrive detect new folder to prevent upload trials
Description
eDrive now try to create missing remote folder each time it detects a new one (from FileObserver & periodic full scan)
Issue(s)
https://gitlab.e.foundation/e/os/backlog/-/issues/283
Test procedures
- Add account
- wait 5-10 minutes for intialization
- Open File explorer, create a folder in /Documents
- run adb logcat | grep "FileEventListener" and look for log like in this example:
05-04 16:39:47.368 1850 2148 D FileEventListener: handleDirectoryCreate(/storage/emulated/0/Documents/Kenjagami)
05-04 16:39:47.424 1850 2148 D FileEventListener: Sending a SyncRequest for /storage/emulated/0/Documents/Kenjagami/
- run `adb logcat | grep "SynchronizationService" and look for logs like :
05-04 16:39:47.432 1850 2148 V SynchronizationService: an operation has been poll from queue
05-04 16:39:48.564 1850 1850 D SynchronizationService: onRemoteOperationFinish()
05-04 16:39:48.564 1850 1850 D SynchronizationService: CreateRemoteFolderOperation succeed
- Check on cloud that the new directory exist.
- Also check for non regression
Check list
-
Self review -
Test procedure explained -
Self Test -
Reviewer's review
Edited by Vincent Bourgmayer