Github user dblotsky commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-file/pull/170#discussion_r56579672
--- Diff: src/android/FileUtils.java ---
@@ -550,6 +577,26 @@ private boolean hasWritePermission() {
return PermissionHelper.hasPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
}
+ private boolean needPermission(String nativeURL, JSONArray args, int
permissionType) throws JSONException {
+ JSONObject j = requestAllPaths();
+ String[] allowedStorageDirectories =
{j.getString("applicationStorageDirectory"),
j.getString("externalApplicationStorageDirectory")};
+
+ if(permissionType == READ && hasReadPermission()) {
+ return false;
+ }
+ else if(permissionType == WRITE && hasWritePermission()) {
--- End diff --
Just curious: do permissions ever expire?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]