-
Notifications
You must be signed in to change notification settings - Fork 755
Description
Is any way ho use getDirectory on Android 13?
Example usage
fileSystem.root.getDirectory( 'Download', { create: true }, (dirEntry) => { console.log('createFile') log.info('saveBlob2File -> requestFileSystem', 'createFile') createFile(dirEntry, fileName, blob) }, (error) => { log.error(logSource, 'Directory Download could not be created.') log.error(logSource, error) const notificationObj = { message: logSource + ' | fileSystem.root.getDirectory | ' + ': error: ' + error.message, timeMark: new Date().getTime() } store.dispatch('appNotifications/setMessage', notificationObj) updateCircularProgressVisible(false) })
In FileUtils is else if (action.equals("getDirectory")) { where check permission but its for old Android API.
private void getWritePermission(String rawArgs, int action, CallbackContext callbackContext) { int requestCode = pendingRequests.createRequest(rawArgs, action, callbackContext); PermissionHelper.requestPermission(this, requestCode, Manifest.permission.WRITE_EXTERNAL_STORAGE); }
THX