Giter Site home page Giter Site logo

How to copy files from internal storage into scoped storage in an external SD card in the Podcasts directory? about react-native-file-access HOT 6 CLOSED

mitchdowney avatar mitchdowney commented on June 8, 2024
How to copy files from internal storage into scoped storage in an external SD card in the Podcasts directory?

from react-native-file-access.

Comments (6)

alpha0010 avatar alpha0010 commented on June 8, 2024 1

From what I can tell, it is an incompatibility. I will see what I can do.

from react-native-file-access.

alpha0010 avatar alpha0010 commented on June 8, 2024 1

Should be fixed in v2.4.4.

I would like to add features from libraries such as react-native-scoped-storage and react-native-document-picker to this library, so that only one library is really needed for file handling. However, I just do not have the time for that currently. (PRs always welcome.)

from react-native-file-access.

mitchdowney avatar mitchdowney commented on June 8, 2024

Another thing related to this...it seemed like cpExternal() might be intended for this purpose (copying a file from internal to scoped SD card storage), but cpExternal() doesn't have the "Podcasts" directory as an option.

Beyond that though, cpExternal() isn't working for me, even with the "downloads" param, I think because the openDocumentTree method will not let me select the Download folder to give it scoped storage permission.

Any insights on what I'm doing wrong would be greatly appreciated.

from react-native-file-access.

mitchdowney avatar mitchdowney commented on June 8, 2024

@alpha0010 do you think the incompatibility is with react-native-scoped-storage? Or something else is incompatible?

from react-native-file-access.

mitchdowney avatar mitchdowney commented on June 8, 2024

@alpha0010 follow-up question...the only reason we are using react-native-scoped-storage AND react-native-file-access (assuming react-native-file-access does in fact support scoped storage) is because react-native-scoped-storage has an openDocumentTree method so that the user can select which directory to use for scoped storage. Is there a method similar to openDocumentTree in react-native-file-access? Or is the expectation for us to use a separate library to enable scoped storage?

from react-native-file-access.

mitchdowney avatar mitchdowney commented on June 8, 2024

@alpha0010 it works! I was able to download audio files to the SD card for the first time 🥳 thanks so much for the quick fix!

from react-native-file-access.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.