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

Fix public directory #90

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Updated ReactNativeBlobUtilFS.java to use Environment.getExternalStor…
…agePublicDirectory
oneHamidreza committed Dec 18, 2021
commit 8a38e37fd1572d48b0d0773b270a32f2dcfda4e8
Original file line number Diff line number Diff line change
@@ -275,7 +275,7 @@ static Map<String, Object> getSystemfolders(ReactApplicationContext ctx) {
}

static String getExternalFilesDirPath(ReactApplicationContext ctx, String type) {
File dir = ctx.getExternalFilesDir(type);
File dir = Environment.getExternalStoragePublicDirectory(type);
if (dir != null) return dir.getAbsolutePath();
return "";
}