Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

[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

  1. Upload a file with browser in a directory synchronized by eDrive.
  2. Rename the file to put a "." in front of the name. (example: photo1.jpeg => .photo1.jpeg)
  3. Let eDrive start synchronization or force it with adb
  4. 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