Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow reading chunks from files #83

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

flogy
Copy link
Contributor

@flogy flogy commented Apr 9, 2024

Allow reading chunks from files, starting with the byte at offset index, reading for length bytes.

Like this it is possible to e.g. upload file chunks to a server.

This change will also allow people who are still using react-native-fs only because of this feature, to migrate to react-native-file-access.

Copy link
Owner

@alpha0010 alpha0010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! Just a small change, it should be good to go.

android/src/main/java/com/alpha0010/fs/FileAccessModule.kt Outdated Show resolved Hide resolved
@flogy
Copy link
Contributor Author

flogy commented Apr 15, 2024

Hi @alpha0010

Thanks for your review! Fixed the linting issues now too :)

@alpha0010 alpha0010 merged commit 7d5cbe3 into alpha0010:master Apr 15, 2024
1 check passed
@flogy flogy deleted the read-file-chunks branch April 16, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants