Repository navigation
[MOO-2482]: File System APIs for getFileSize and writeChunk - #66
Open
MxKevinBeqo wants to merge 9 commits into
Open
MxKevinBeqo wants to merge 9 commits into
MxKevinBeqo wants to merge 9 commits into
Conversation
Collaborator
|
Rebasing should fix the Android build issue. |
MxKevinBeqo
force-pushed
the
moo/MOO-2482-resumable-download-apis
branch
from
September 28, 2026 11:38
2a6f536 to
79aa922
Compare
Previously getFileSize resolved 0 for a non-existent file and when the size attribute could not be read, making a missing file indistinguishable from an empty one. It now rejects with ERROR_READ_FAILED on both platforms. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Instead of overloading save and writeChunk to accept BlobData | string, add saveBase64 and writeChunkBase64 to NativeFileSystem. save and writeChunk accept a blob only again. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With encryption enabled, saveBase64 goes through the regular save path and the stored file is larger than the payload on Android, so asserting on getFileSize failed. Read the file back with readAsDataURL instead.
YogendraShelke
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds 2 new file system APIs to to get the size of a file and the perform chunked writing via offset (required for 'pause-resume'-capable functionalities).