Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It will not show files in paths like "Downloads 1" #129

Open
vedprakashwagh opened this issue Jun 29, 2020 · 0 comments
Open

It will not show files in paths like "Downloads 1" #129

vedprakashwagh opened this issue Jun 29, 2020 · 0 comments

Comments

@vedprakashwagh
Copy link

vedprakashwagh commented Jun 29, 2020

It will not show files in paths like "Downloads 1". It'll change the "docId" to "download: 1" when it should be "Downloads 1", and try to find the files in the path "/storage/emulated/0/Download/ 1" when it should be seeing the path "/storage/emulated/0/Downloads 1".

This results in FileNotFoundException, full stack trace below:

java.io.FileNotFoundException: Missing file for download: 1 at /storage/emulated/0/Download/ 1
        at dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.buildFile(ExternalStorageProvider.java:604)
        at dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.getFileForDocId(ExternalStorageProvider.java:566)
        at dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.getFileForDocId(ExternalStorageProvider.java:560)
        at dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.getFileForDocId(ExternalStorageProvider.java:556)
        at dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.getDocumentType(ExternalStorageProvider.java:876)
        at dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.queryChildDocuments(ExternalStorageProvider.java:840)
        at dev.dworks.apps.anexplorer.provider.DocumentsProvider.query(DocumentsProvider.java:596)
        at android.content.ContentProvider.query(ContentProvider.java:1235)
        at android.content.ContentProvider.query(ContentProvider.java:1328)
        at android.content.ContentProvider$Transport.query(ContentProvider.java:267)
        at android.content.ContentProviderClient.query(ContentProviderClient.java:195)
        at android.content.ContentProviderClient.query(ContentProviderClient.java:177)
        at android.content.ContentProviderClient.query(ContentProviderClient.java:167)
        at dev.dworks.apps.anexplorer.loader.DirectoryLoader.loadInBackground(DirectoryLoader.java:161)
        at dev.dworks.apps.anexplorer.loader.DirectoryLoader.loadInBackground(DirectoryLoader.java:59)
        at dev.dworks.apps.anexplorer.misc.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:310)
        at dev.dworks.apps.anexplorer.misc.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
        at dev.dworks.apps.anexplorer.misc.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
        at dev.dworks.apps.anexplorer.misc.AsyncTask$2.call(AsyncTask.java:135)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at dev.dworks.apps.anexplorer.misc.ProviderExecutor.run(ProviderExecutor.java:103)

I'll try to find where the problem is, and will let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant