Catfriend1 / syncthing-android

Syncthing-Fork - A Syncthing Wrapper for Android.
Mozilla Public License 2.0
1.82k stars 53 forks source link

Offer option to create ".nomedia" if the user adds a Syncthing folder #769

Open Catfriend1 opened 3 years ago

Catfriend1 commented 3 years ago

Purpose:

Give the user the option to not let Android's media scanner run through the synced folder contents. Some users sync non camera picture files where every JPG/PNG/BMP/etc. asset of a synced app/game/etc. will show up in the gallery without the ".nomedia" file in place.

Ref.: https://forum.syncthing.net/t/how-to-hide-syncthing-folder-in-android/16602/3?u=catfriend1

domportera commented 2 years ago

yes please, every time i add a .nomedia file it gets moved to a .thumbnails folder or deleted

Catfriend1 commented 2 years ago

yes please, every time i add a .nomedia file it gets moved to a .thumbnails folder or deleted

I don't think it is Syncthing doing this.

domportera commented 2 years ago

i cant say for sure but for whatever reason when i put a .nomedia in the root synced folder it gets deleted (in retrospect definitely not moved, i was tired). i can test it further though and if i can reproduce it with other syncthing folders ill update this thread or start a bug report

Catfriend1 commented 12 months ago

The best way to manually apply is to rename the affected folder in Material Files and rename it back. Gallery shows the contents no longer if .nomedia was added.