@Override
    protected boolean hasPermission(@NonNull File path) {
        return PackageManager.PERMISSION_GRANTED ==
                ContextCompat.checkSelfPermission(getContext(),
                        Manifest.permission.WRITE_EXTERNAL_STORAGE);
    }
@return true if app has been granted permission to write to the SD-card.
android/modules/module_filepicker/src/main/java/com/nononsenseapps/filepicker/FilePickerFragment.java