Cordova created files not showing in Windows Explo

2019-07-23 21:05发布

问题:

I have recently created a Cordova Application to work on a Android table. everything is working great and my application saves audio files that have been recorded by the user by using the org.apache.cordova.media plugin.

I am saving recorded sound files to a specific directory within "mnt/sdcard/" and when exploring the device using ES File Explorer i can see the .mp3 files. However if i navigate to the same directory within Windows Explorer (with my device attached via USB) i am unable to see the files.

I have been looking around the web for a fix for this and a few forums said that restarting the device would show the files. I tried restarting and my files did show up. However I do not want to have to restart my device everytime i want to get files off the device.

This post clearly describes a way to fix this if you are writing a native Android application however I am writing my application using Cordova and the media plugin.

Does anyone know a way around this for Cordova or more specifically the media plugin?

*Edit

Also something I tried was going into ES File Explorer and cutting the file and pasting it in a different directory. This seemed to work and showed the file within Windows Explorer. It looks like the file is still attached to the application and so wont show up. Ive tried quitting out of the application and even doing a force close and still not working.

回答1:

restart device & reconnect adapter. This might help..