All file actions should broadcast MEDIA_SCANNER_SCAN_FILE intent to emulate file explorer
For example if I copied a file using tasker's 'file action' , then it should refresh mediastore, so that apps can pickup the new file in the directory.
It can be done using:
am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/filename
(probably you might need to run the above in root mode in some phones
Refer: https://stackoverflow.com/questions/17928576/refresh-android-mediastore-using-adb