Skip to content

Comments

feat(filesystem): Add support for SDCard filesystem on Android#1665

Open
ghenry22 wants to merge 14 commits intoionic-team:mainfrom
ghenry22:main
Open

feat(filesystem): Add support for SDCard filesystem on Android#1665
ghenry22 wants to merge 14 commits intoionic-team:mainfrom
ghenry22:main

Conversation

@ghenry22
Copy link

@ghenry22 ghenry22 commented Jun 22, 2023

Add support for checking and accessing the SD Card on Android.

add isPortableStorageAvailable() to check if SD Card is present
add Directory.PortableStorage to select the SD Card directory

Tested on simulator on Android 9
Tested on Samsung Galaxy S10 on Android 10
Tested on Samsung Galaxy A23 5G on Android 13
Tested on Google Pixel 6a (no SD card slot on device, confirming all works in this scenario)

This is non-breaking and backward compatible.

closes ionic-team/capacitor-filesystem#36

add isPortableStorageAvailable to check is SD Card is present
add Directory.PortableStorage to select the SD Card directory
@ghenry22 ghenry22 changed the title Add support for SDCard filesystem on Android feat[android]: Add support for SDCard filesystem on Android Jun 22, 2023
@ghenry22 ghenry22 changed the title feat[android]: Add support for SDCard filesystem on Android feat(android): Add support for SDCard filesystem on Android Jun 22, 2023
@ghenry22 ghenry22 changed the title feat(android): Add support for SDCard filesystem on Android feat(filesystem): Add support for SDCard filesystem on Android Jun 22, 2023
@giralte-ionic giralte-ionic added the type: feature request A new feature, enhancement, or improvement label Jul 18, 2023
@ghenry22
Copy link
Author

@giralte-ionic any chance of getting this reviewed and merged? It's non breaking, fully backward compatible and simply adds support to the filesystem plugin on android for accessing storage on the SD card when the card is configured as Portable Storage.

@ghenry22
Copy link
Author

Any chance of getting this merged in an upcoming release? Being able to access the SDCARD filesystem using the standard filesystem plugin is useful for anyone storing or accessing files on Android.

@ghenry22

This comment was marked as abuse.

@Leafmire
Copy link

Are there any plans for this to become a feature of the plugin?
I'm applying this commit to my project and finding it very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature request A new feature, enhancement, or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[@capacitor/filesystem] Add support for a directory for SDCard as Portable Storage

4 participants