[eDrive] prevent synchronization of hidden files from server
- /e/ version:
- Device model(s):
- Device rooted: yes/no
Summary
Hidden files on cloud are synchronized on the phone while they shouldn't be
check #5373 for extra details
The problem
Steps to reproduce Add an hidden files on cloud from browser let eDrive do its job.
What is the current behavior?
hidden file will be uploaded on device.
What is the expected correct behavior?
Hidden files are ignored
Test procedures
- Upload a file with browser in a directory synchronized by eDrive.
- Rename the file to put a "." in front of the name. (example:
photo1.jpeg
=>.photo1.jpeg
) - Let eDrive start synchronization or force it with adb
- the hidden file shouldn't be nor on device nor in Database
Solutions
Possible fixes Add an if statement in ListRemoteFileOperation to check if remoteFile's name start with "."
Edited by Vincent Bourgmayer