Skip to content

Optimize notify to MediaStore when files change

This commit adds functionality to notify the MediaStore when files are modified via SFTP. This ensures that changes made through SFTP are reflected in the Android media library.

While previous implementations of SAF had implemented this behavior correctly, the implementation of Native FS did not. This MR changes the implementation to ensure consistent behavior.

Specifically, the MediaStore is notified after file creation, deletion, copying, renaming, and link creation. Additionally, it is notified after closing a file that was opened for writing. This ensures that the MediaStore is kept up-to-date with any changes made to files through SFTP.

Merge request reports

Loading