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

(permission denied) error during compressing files on external stroage(SD card/ OTG) #135

Open
AmirF194 opened this issue Jul 29, 2021 · 0 comments

Comments

@AmirF194
Copy link

AmirF194 commented Jul 29, 2021

Hi,
Thank you very much for your great project.
I tried to compress a file on SD card but got the following error despite giving write and read permissions on external storage in manifest:
2021-07-29 19:19:25.079 24521-24575/ D/>>error>>>>>>>>>: /storage/3072-A0C3/_CS_U.zip (Permission denied) 2021-07-29 19:19:25.082 24521-24575/r W/Documents: Failed to compress document java.lang.IllegalStateException: Failed to extract /storage/3072-A0C3 at .provider.ExternalStorageProvider.compressDocument(ExternalStorageProvider.java:785) at .provider.DocumentsProvider.callUnchecked(DocumentsProvider.java:881) at provider.DocumentsProvider.call(DocumentsProvider.java:730) at android.content.ContentProvider$Transport.call(ContentProvider.java:407) at android.content.ContentResolver.call(ContentResolver.java:1714) at .model.DocumentsContract.compressDocument(DocumentsContract.java:1361) at .fragment.DirectoryFragment.onCompressDocuments(DirectoryFragment.java:1073) at .fragment.DirectoryFragment$OperationTask.doInBackground(DirectoryFragment.java:952) at .fragment.DirectoryFragment$OperationTask.doInBackground(DirectoryFragment.java:882) at .misc.AsyncTask$2.call(AsyncTask.java:141) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)
It works pretty well on Internal storage.

Thank a lot!

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